Class TransformResponse
- java.lang.Object
-
- com.aspectran.core.activity.response.transform.TransformResponse
-
- All Implemented Interfaces:
Response,Replicable<Response>
- Direct Known Subclasses:
AponTransformResponse,JsonTransformResponse,NoneTransformResponse,TextTransformResponse,XmlTransformResponse,XslTransformResponse
public abstract class TransformResponse extends java.lang.Object implements Response
The Class TransformResponse. Created: 2008. 03. 22 PM 5:51:58
-
-
Constructor Summary
Constructors Constructor Description TransformResponse(TransformRule transformRule)Instantiates a new TransformResponse.
-
Method Summary
All Methods Instance Methods Abstract 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.FormatTypegetFormatType()Gets the format type.ResponseTypegetResponseType()Gets the response type.TransformRulegetTransformRule()Gets the transform rule.java.lang.StringtoString()protected abstract voidtransform(Activity activity)
-
-
-
Constructor Detail
-
TransformResponse
public TransformResponse(TransformRule transformRule)
Instantiates a new TransformResponse.- Parameters:
transformRule- the transform rule
-
-
Method Detail
-
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
-
getFormatType
public FormatType getFormatType()
Gets the format type.- Returns:
- the format type
-
getTransformRule
public TransformRule getTransformRule()
Gets the transform rule.- Returns:
- the transform rule
-
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
-
transform
protected abstract void transform(Activity activity) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-