public class ShiroHttpServletResponse extends HttpServletResponseWrapper
| Constructor and Description |
|---|
ShiroHttpServletResponse(HttpServletResponse wrapped, ServletContext context, ShiroHttpServletRequest
|
| Modifier and Type | Method and Description |
|---|---|
String |
encodeRedirectUrl(String
|
String |
encodeRedirectURL(String
Encode the session identifier associated with this response into the specified redirect URL, if necessary.
|
String |
encodeUrl(String
|
String |
encodeURL(String
Encode the session identifier associated with this response into the specified URL, if necessary.
|
ServletContext |
getContext()
|
ShiroHttpServletRequest |
getRequest()
|
protected boolean |
isEncodeable(String
Return
true if the specified URL should be encoded with a session identifier.
|
static boolean |
isSchemeChar(char c)
Determine if the character is allowed in the scheme of a URI.
|
void |
setContext(ServletContext context)
|
void |
setRequest(ShiroHttpServletRequest
|
protected String |
toEncoded(String
Return the specified URL with the specified session identifier suitably encoded.
|
public ShiroHttpServletResponse(HttpServletResponse wrapped,
ServletContext context,
ShiroHttpServletRequest request) public ServletContext getContext()
public void setContext(ServletContext context)
public ShiroHttpServletRequestgetRequest()
public void setRequest(ShiroHttpServletRequestrequest)
public StringencodeRedirectURL(String url)
url - URL to be encoded
public StringencodeURL(String url)
url - URL to be encoded
protected boolean isEncodeable(Stringlocation)
true if the specified URL should be encoded with a session identifier. This will be true if all of the following conditions are met:
location - Absolute URL to be validated
true if the specified URL should be encoded with a session identifier,
false otherwise.
public static boolean isSchemeChar(char c)
c - the character to check
true if the character is allowed in a URI scheme,
false otherwise.
protected StringtoEncoded(String url, String sessionId)
url - URL to be encoded with the session id
sessionId - Session id to be included in the encoded URL