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 void
commit(Activity activity)
The result of the activity is processed into a specific response form and then sent to the client.java.lang.String
getContentType()
Gets the content type.FormatType
getFormatType()
Gets the format type.ResponseType
getResponseType()
Gets the response type.TransformRule
getTransformRule()
Gets the transform rule.java.lang.String
toString()
protected abstract void
transform(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:Response
Gets the response type.- Specified by:
getResponseType
in interfaceResponse
- Returns:
- the response type
-
getContentType
public java.lang.String getContentType()
Description copied from interface:Response
Gets the content type.- Specified by:
getContentType
in 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:Response
The result of the activity is processed into a specific response form and then sent to the client.- Specified by:
commit
in 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:
toString
in classjava.lang.Object
-
-