Class RedirectResponse
- java.lang.Object
-
- com.aspectran.core.activity.response.RedirectResponse
-
- All Implemented Interfaces:
Response,Replicable<Response>
public class RedirectResponse extends java.lang.Object implements Response
The Class RedirectResponse.Created: 2008. 03. 22 PM 5:51:58
-
-
Constructor Summary
Constructors Constructor Description RedirectResponse(RedirectRule redirectRule)Instantiates a new RedirectResponse.
-
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.RedirectRulegetRedirectRule()Returns the redirect rule.ResponseTypegetResponseType()Gets the response type.Responsereplicate()Replicates and returns this response.java.lang.StringtoString()
-
-
-
Constructor Detail
-
RedirectResponse
public RedirectResponse(RedirectRule redirectRule)
Instantiates a new RedirectResponse.- Parameters:
redirectRule- the redirect rule
-
-
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
-
getRedirectRule
public RedirectRule getRedirectRule()
Returns the redirect rule.- Returns:
- the redirect rule
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-