Class CustomTransformResponse
- java.lang.Object
-
- com.aspectran.core.activity.response.transform.CustomTransformResponse
-
- All Implemented Interfaces:
Response,Replicable<Response>
public class CustomTransformResponse extends java.lang.Object implements Response
Responding with user-implementedCustomTransformer. Created: 2019. 06. 15
-
-
Constructor Summary
Constructors Constructor Description CustomTransformResponse()Instantiates a new CustomTransformResponse.CustomTransformResponse(CustomTransformer transformer)Instantiates a new CustomTransformResponse.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit(Activity activity)The result of the activity is processed into a specific response form and then sent to the client.java.lang.StringgetContentType()Gets the content type.ResponseTypegetResponseType()Gets the response type.Responsereplicate()Replicates and returns this response.java.lang.StringtoString()
-
-
-
Constructor Detail
-
CustomTransformResponse
public CustomTransformResponse()
Instantiates a new CustomTransformResponse.
-
CustomTransformResponse
public CustomTransformResponse(CustomTransformer transformer)
Instantiates a new CustomTransformResponse.- Parameters:
transformer- the custom transformer
-
-
Method Detail
-
commit
public void commit(Activity activity) throws ResponseException
Description copied from interface:ResponseThe result of the activity is processed into a specific response form and then sent to the client.- Specified by:
commitin interfaceResponse- Parameters:
activity- the current Activity- Throws:
ResponseException- the response exception
-
getResponseType
public ResponseType getResponseType()
Description copied from interface:ResponseGets the response type.- Specified by:
getResponseTypein interfaceResponse- Returns:
- the response type
-
getContentType
public java.lang.String getContentType()
Description copied from interface:ResponseGets the content type.- Specified by:
getContentTypein interfaceResponse- Returns:
- the content type
-
replicate
public Response replicate()
Description copied from interface:ResponseReplicates and returns this response.- Specified by:
replicatein interfaceReplicable<Response>- Specified by:
replicatein interfaceResponse- Returns:
- the new response
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-