| java.lang.Object com.caucho.server.connection.RequestWrapper com.caucho.server.connection.RequestAdapter
All known Subclasses: com.caucho.server.webapp.DispatchRequest,
RequestAdapter | public class RequestAdapter extends RequestWrapper implements CauchoRequest(Code) | | Any requests that depends on an underlying request, like
include() requests or adapters for other servlet engines.
|
Method Summary | |
public boolean | allowKeepalive() | public boolean | authenticate() | public static RequestAdapter | create(HttpServletRequest request, WebApp app) Creates a new RequestAdapter. | public static RequestAdapter | create() Creates a new RequestAdapter. | public static void | free(RequestAdapter reqAdapt) Frees the adapter for reuse. | protected void | free() Clears the adapter. | public Cookie | getCookie(String name) | final protected String | getCookieName(SessionManager manager) | public Cookie[] | getCookies() | public boolean | getHasCookie() | public HttpSession | getMemorySession() | public String | getPageContextPath() | public static String | getPageContextPath(HttpServletRequest request) | public String | getPagePathInfo() Returns the path-info for the current page, i.e. | public static String | getPagePathInfo(HttpServletRequest request) Returns the path-info for the current page, i.e. | public String | getPageQueryString() Returns the query-string for the current page, i.e. | public static String | getPageQueryString(HttpServletRequest request) Returns the query-string for the current page, i.e. | public String | getPageServletPath() Returns the servlet-path for the current page, i.e. | public static String | getPageServletPath(HttpServletRequest request) Returns the servlet-path for the current page, i.e. | public String | getPageURI() Returns the URI for the current page: included or top-level. | public static String | getPageURI(HttpServletRequest request) | public int | getRequestDepth(int depth) | public String | getRequestedSessionId() | protected HttpServletResponse | getResponse() | public HttpSession | getSession(boolean create) | final protected SessionManager | getSessionManager() | public ReadStream | getStream() Returns the underlying read stream. | public String | getVaryCookie() | public boolean | getVaryCookies() | public WebApp | getWebApp() | public void | init(HttpServletRequest request, HttpServletResponse response, WebApp app) | public boolean | isRequestedSessionIdFromCookie() | public boolean | isRequestedSessionIdFromURL() | public boolean | isRequestedSessionIdValid() | public boolean | isTop() | public boolean | isUserInRole(String role) Checks the isUserInRole. | public void | killKeepalive() | public void | setHasCookie() | public void | setHeader(String key, String value) | public void | setResponse(CauchoResponse response) | public HashMap<String, String> | setRoleMap(HashMap<String, String> map) Sets the role map. | public void | setVaryCookie(String cookie) | public void | setWebApp(WebApp app) |
MAX_DEPTH | final static int MAX_DEPTH(Code) | | |
RequestAdapter | protected RequestAdapter()(Code) | | |
allowKeepalive | public boolean allowKeepalive()(Code) | | |
free | protected void free()(Code) | | Clears the adapter.
|
getHasCookie | public boolean getHasCookie()(Code) | | |
getPagePathInfo | public String getPagePathInfo()(Code) | | Returns the path-info for the current page, i.e. this will return the
url of the include page, not the original request.
|
getPagePathInfo | public static String getPagePathInfo(HttpServletRequest request)(Code) | | Returns the path-info for the current page, i.e. this will return the
url of the include page, not the original request.
|
getPageQueryString | public String getPageQueryString()(Code) | | Returns the query-string for the current page, i.e. this will return the
url of the include page, not the original request.
|
getPageQueryString | public static String getPageQueryString(HttpServletRequest request)(Code) | | Returns the query-string for the current page, i.e. this will return the
url of the include page, not the original request.
|
getPageServletPath | public String getPageServletPath()(Code) | | Returns the servlet-path for the current page, i.e. this will return the
url of the include page, not the original request.
|
getPageServletPath | public static String getPageServletPath(HttpServletRequest request)(Code) | | Returns the servlet-path for the current page, i.e. this will return the
url of the include page, not the original request.
|
getPageURI | public String getPageURI()(Code) | | Returns the URI for the current page: included or top-level.
|
getRequestDepth | public int getRequestDepth(int depth)(Code) | | |
getRequestedSessionId | public String getRequestedSessionId()(Code) | | |
getStream | public ReadStream getStream() throws IOException(Code) | | Returns the underlying read stream.
|
getVaryCookies | public boolean getVaryCookies()(Code) | | |
isRequestedSessionIdFromCookie | public boolean isRequestedSessionIdFromCookie()(Code) | | |
isRequestedSessionIdFromURL | public boolean isRequestedSessionIdFromURL()(Code) | | |
isRequestedSessionIdValid | public boolean isRequestedSessionIdValid()(Code) | | |
isTop | public boolean isTop()(Code) | | |
isUserInRole | public boolean isUserInRole(String role)(Code) | | Checks the isUserInRole.
|
killKeepalive | public void killKeepalive()(Code) | | |
setHasCookie | public void setHasCookie()(Code) | | |
|
|