Interface HttpResponseAction
- All Known Implementing Classes:
DefaultHttpResponseAction
public interface HttpResponseAction
The
HttpResponseAction
interface is used as a result object for SignService engines and handlers that process
user requests (HttpUserRequest
).
The HttpResponseAction
can represent three different types of responses:
- The user's browser should be redirected to a given URL.
- The user's browser should be posted to a given URL with a set of parameters.
- A response message should be written (HTTP Status 200).
HttpResponseAction
instance can only represent one of the above types.-
Method Summary
Modifier and TypeMethodDescriptiongetBody()
If the response action is that the SignService should reply to a request by sending back a 200 status with a response body this method returnHttpBodyAction
object that tells how the HTTP response should be constructed (filled in).getPost()
If the response action is that a HTTP POST should be performed this method returns theHttpPostAction
telling where the user's browser should be posted and with which parameters.If the response action is that a HTTP redirect should be performed this method returns theHttpRedirectAction
telling where the user's browser should be directed.
-
Method Details
-
getRedirect
If the response action is that a HTTP redirect should be performed this method returns theHttpRedirectAction
telling where the user's browser should be directed.- Returns:
- a HttpRedirectAction, or null if this is not a redirect action
-
getPost
If the response action is that a HTTP POST should be performed this method returns theHttpPostAction
telling where the user's browser should be posted and with which parameters.- Returns:
- a HttpPostAction, or null if this is not a post action
-
getBody
If the response action is that the SignService should reply to a request by sending back a 200 status with a response body this method returnHttpBodyAction
object that tells how the HTTP response should be constructed (filled in).- Returns:
- a HttpBodyAction, or null if this is not a response body action
-