When implementing the rewritable interface, the following methods are available:
|
Return Value |
Method |
Description |
|---|---|---|
|
public string |
rewrite(String url, String id, HttpServletRequest req) |
Rewrites a requested URL to contain a session identifier. |
|
public string |
onSessionCreateRedirect(String id, String url, HttpServletRequest req, |
Provides a callback for the event of session creation by redirection. It is typically used in conjunction with forms-based authentication, where the target URL is different from the requested URL. For example, the authentication scheme may modify the URL or add a cookie. |
In addition to the rewritable interface, the methods must be implemented in the custom session scheme.
|
Return Value |
Method |
Description |
|---|---|---|
|
protected void |
setRequestURI(HttpServletRequest req, String uri) |
Allows the scheme to modify the request URI. |
|
protected void |
setRequestPathInfo(HttpServletRequest req, String pathInfo) |
Allows the scheme to modify the path information of the request. |
| Copyright © 2012 CA. All rights reserved. |
|