public class CreateRedirectURI
extends java.lang.Object
If the length exceeds MAX_URL_LENGTH
, then the redirect URI will default
to a value of LoginAction.DEFAULT_URL_BOUNCE
;
Note: This implementation does not support multi-value parameters.
Note: This class may/should get generalized and wind up implementing a "functor" interface or extending from some base class if other request-related functor classes are added to the code base.
Modifier and Type | Field and Description |
---|---|
static long |
MAX_URL_LENGTH
Most browsers limit a URL length to 2048 bytes.
|
Constructor and Description |
---|
CreateRedirectURI() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
execute(javax.servlet.http.HttpServletRequest request)
Execute this functor object and create a redirect URI with request params appended
to the query string.
|
public static final long MAX_URL_LENGTH
public java.lang.String execute(javax.servlet.http.HttpServletRequest request) throws java.io.IOException, javax.servlet.ServletException
request
- The current requestjava.io.IOException
- If an IO error occursjavax.servlet.ServletException
- If a servlet processing error occurs