Method Summary |
|
public void | addCloseOnExit(Path path) Adds a file to be removed at the end. |
protected boolean | addHeaderInt(char[] keyBuf, int keyOff, int keyLen, CharSegment value) Adds the header, checking for known values. |
public boolean | allowKeepalive() Returns true if keepalives are allowed. |
public boolean | authenticate() Authenticate the user. |
public void | cleanup() |
protected void | connectionClose() |
protected String | dbgId() |
public String | findSessionIdFromConnection() For SSL connections, use the SSL identifier. |
public void | finish() |
public Object | getAttribute(String name) Returns the value of the named request attribute.
Parameters: name - the attribute name. |
public Enumeration<String> | getAttributeNames() Returns an enumeration of the request attribute names. |
public String | getAuthType() |
public String | getCharacterEncoding() Returns the character encoding of a post. |
final public Connection | getConnection() Returns the connection. |
public int | getContentLength() Returns the content length of a post. |
public String | getContentType() Returns the content-length of a post. |
public CharSegment | getContentTypeBuffer() Returns the content-length of a post. |
public String | getContextPath() Returns the context part of the uri. |
public Cookie | getCookie(String name) |
public Cookie[] | getCookies() |
public long | getDateHeader(String key) Returns a header interpreted as a date.
Parameters: key - the header key. |
final public DispatchServer | getDispatchServer() returns the dispatch server. |
public boolean | getHasCookie() True if this page uses cookies. |
abstract public String | getHeader(String key) Returns the named header. |
public CharSegment | getHeaderBuffer(String name) Fills the result with the header values as
CharSegment values. |
public void | getHeaderBuffers(String name, ArrayList<CharSegment> resultList) Fills the result with a list of the header values as
CharSegment values. |
public CharSegment | getHeaderKey(int index) |
abstract public Enumeration | getHeaderNames() |
public int | getHeaderSize() Returns the number of headers. |
public CharSegment | getHeaderValue(int index) |
public Enumeration | getHeaders(String name) Returns an enumeration of the headers for the named attribute. |
protected CharSequence | getHost() |
public ServletInputStream | getInputStream() Returns a stream for reading POST data. |
public int | getIntHeader(String key) Returns the named header, converted to an integer.
Parameters: key - the header key. |
final public Invocation | getInvocation() Returns the request's invocation. |
public HttpSession | getLoadedSession() Returns the current session. |
public String | getLocalAddr() Returns the server's address. |
public String | getLocalName() Returns the server's address. |
public int | getLocalPort() Returns the local port. |
public Locale | getLocale() |
public Enumeration<Locale> | getLocales() |
final public byte[] | getLogBuffer() Returns the log buffer. |
public long | getLongContentLength() Returns the content length of a post. |
public HttpSession | getMemorySession() Returns the memory session. |
abstract public String | getMethod() |
public String | getPageContextPath() Returns the context part of the uri. |
public String | getPagePathInfo() Returns the portion of the uri after the servlet path for the current
page. |
public String | getPageQueryString() Returns the current page's query string. |
public String | getPageServletPath() Returns the portion of the uri mapped to the servlet for the current
page. |
public String | getPageURI() Returns the URI for the page. |
public String | getParameter(String name) Returns the form primary value for the given name. |
public Map<String, String[]> | getParameterMap() Returns a map of the form. |
public Enumeration<String> | getParameterNames() Returns an enumeration of the form names. |
public String[] | getParameterValues(String name) Returns the form's values for the given name. |
public String | getPathInfo() Returns the portion of the uri after the servlet path for the original
request. |
public String | getPathTranslated() Returns the real path of pathInfo. |
abstract public String | getProtocol() |
public String | getQueryString() Returns the current page's query string. |
public ReadStream | getRawInput() Returns the raw input stream. |
public byte[] | getRawReadBuffer() Returns the raw read buffer. |
public BufferedReader | getReader() |
public String | getRealPath(String path) |
public String | getRemoteAddr() |
public String | getRemoteHost() |
public int | getRemotePort() Returns the local port. |
public String | getRemoteUser(boolean create) Internal logging return to get the remote user. |
public String | getRemoteUser() |
public int | getRequestDepth(int depth) Returns the depth of the request calls. |
public int | getRequestDepth() |
public RequestDispatcher | getRequestDispatcher(String path) Returns a request dispatcher relative to the current request. |
public String | getRequestURI() |
public StringBuffer | getRequestURL() |
public String | getRequestedSessionId() Returns the session id in the HTTP request. |
public String | getRequestedSessionIdNoVary() Returns the session id in the HTTP request. |
public CauchoResponse | getResponse() Returns the response for this request. |
public String | getScheme() Returns the request's scheme. |
public String | getServerName() Returns the local server name. |
public int | getServerPort() Returns the server's port. |
public String | getServletName() Returns the servlet name. |
public String | getServletPath() Returns the portion of the uri mapped to the servlet for the original
request. |
public HttpSession | getSession() Returns the current session, creating one if necessary. |
public HttpSession | getSession(boolean create) Returns the current session. |
final protected String | getSessionCookie(SessionManager manager) Returns the session cookie. |
public int | getSessionGroup() |
final protected SessionManager | getSessionManager() Returns the session manager. |
final public long | getStartTime() Returns the date for the current request. |
public ReadStream | getStream() Returns the requests underlying read stream, e.g. |
public ReadStream | getStream(boolean isReader) Returns the requests underlying read stream, e.g. |
abstract public byte[] | getUriBuffer() |
abstract public int | getUriLength() |
public Principal | getUserPrincipal() Returns the Principal representing the logged in user. |
public String | getVaryCookie() Returns the cookie the page depends on, or null if the page
depends on several cookies. |
public boolean | getVaryCookies() Returns true if the page depends on cookies. |
final public WebApp | getWebApp() Returns the invocation's webApp. |
public boolean | handleResume() Handles a comet-style resume. |
public void | init() Initialization. |
abstract protected boolean | initStream(ReadStream readStream, ReadStream rawStream) Initialize the read stream from the raw stream. |
public boolean | isIgnoreClientDisconnect() Returns true if client disconnects should be ignored. |
protected boolean | isKeepalive() Returns true if the keepalive is active. |
public boolean | isRequestedSessionIdFromCookie() Returns true if the current sessionId came from a cookie. |
public boolean | isRequestedSessionIdFromURL() Returns true if the current sessionId came from the url. |
public boolean | isRequestedSessionIdFromUrl() |
public boolean | isRequestedSessionIdValid() Returns true if the HTTP request's session id refers to a valid
session. |
public boolean | isSecure() Returns true if the request is secure. |
public boolean | isTop() |
public boolean | isTransportSecure() Returns true if the transport is secure. |
public boolean | isUserInRole(String role) Returns true if the user represented by the current request
plays the named role.
Parameters: role - the named role to test. |
public void | killKeepalive() Kills the keepalive. |
public void | logout() Logs out the principal. |
public void | logoutUserPrincipal() Clear the principal from the request object. |
public int | printRemoteAddr(byte[] buffer, int offset) |
public void | removeAttribute(String name) Removes the value of the named request attribute. |
protected void | restartServer() Restarts the server. |
protected void | resume() Prepare the Request object for a new request. |
public String | runAs(String role) Sets the overriding role. |
void | saveSession() |
public void | setAttribute(String name, Object value) Sets the value of the named request attribute. |
public void | setCharacterEncoding(String encoding) Sets the character encoding of a post. |
public void | setHasCookie() Set when the page actually has a cookie. |
public void | setHeader(String key, String value) Sets the header. |
final public void | setInvocation(Invocation invocation) Sets the request's invocation. |
final protected void | setStartTime() Sets the start time to the current time. |
public void | setVaryCookie(String cookie) Called if the page depends on a cookie. |
protected void | skip() |
protected void | start() Prepare the Request object for a new request. |