Class TransformResponse
- java.lang.Object
-
- com.aspectran.core.activity.response.transform.TransformResponse
-
- All Implemented Interfaces:
Response
,Replicable<Response>
- Direct Known Subclasses:
AponTransformResponse
,JsonTransformResponse
,NullTransformResponse
,TextTransformResponse
,XmlTransformResponse
,XslTransformResponse
public abstract class TransformResponse extends java.lang.Object implements Response
The Class TransformResponse. Created: 2008. 03. 22 PM 5:51:58
-
-
Field Summary
Fields Modifier and Type Field Description protected TransformRule
transformRule
-
Constructor Summary
Constructors Constructor Description TransformResponse(TransformRule transformRule)
Instantiates a new TransformResponse.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContentType()
Gets the content type.java.lang.String
getContentType(Activity activity)
Gets the content type.ResponseType
getResponseType()
Gets the response type.protected java.io.InputStream
getTemplateAsStream(java.net.URL url)
Gets the template as stream.TransformRule
getTransformRule()
Gets the transform rule.TransformType
getTransformType()
Gets the transform type.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.aspectran.core.activity.response.Response
commit, getActionList, replicate
-
-
-
-
Field Detail
-
transformRule
protected final TransformRule transformRule
-
-
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
-
getContentType
public java.lang.String getContentType(Activity activity)
Description copied from interface:Response
Gets the content type.- Specified by:
getContentType
in interfaceResponse
- Parameters:
activity
- the current activity- Returns:
- the content type
-
getTransformType
public TransformType getTransformType()
Gets the transform type.- Returns:
- the transform type
-
getTransformRule
public TransformRule getTransformRule()
Gets the transform rule.- Returns:
- the transform rule
-
getTemplateAsStream
protected java.io.InputStream getTemplateAsStream(java.net.URL url) throws java.io.IOException
Gets the template as stream.- Parameters:
url
- the url of the template- Returns:
- the input stream of the template
- Throws:
java.io.IOException
- if an I/O error has occurred
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-