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 void
commit(Activity activity)
The result of the activity is processed into a specific response form and then sent to the client.ActionList
getActionList()
Gets the action list.java.lang.String
getContentType()
Gets the content type.java.lang.String
getContentType(Activity activity)
Gets the content type.RedirectRule
getRedirectRule()
Returns the redirect rule.ResponseType
getResponseType()
Gets the response type.Response
replicate()
Replicates and returns this response.java.lang.String
toString()
-
-
-
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: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
-
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
-
getActionList
public ActionList getActionList()
Description copied from interface:Response
Gets the action list.- Specified by:
getActionList
in interfaceResponse
- Returns:
- the action list
-
replicate
public Response replicate()
Description copied from interface:Response
Replicates and returns this response.- Specified by:
replicate
in interfaceReplicable<Response>
- Specified by:
replicate
in interfaceResponse
- Returns:
- the new response
-
getRedirectRule
public RedirectRule getRedirectRule()
Returns the redirect rule.- Returns:
- the redirect rule
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-