Java Doc for AbstractHttpRequest.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » server » connection » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » resin » com.caucho.server.connection 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.server.connection.AbstractHttpRequest

All known Subclasses:   com.caucho.server.hmux.HmuxRequest,  com.caucho.server.http.HttpRequest,  com.caucho.server.connection.StubServletRequest,
AbstractHttpRequest
abstract public class AbstractHttpRequest implements CauchoRequest,SecurityContextProvider(Code)
Abstract request implementing methods common to the different request implementations.


Field Summary
final public static  StringCONTEXT_PATH
    
final public static  StringERROR_URI
    
final public static  StringEXCEPTION
    
final public static  StringEXCEPTION_TYPE
    
final public static  StringJSP_EXCEPTION
    
final static  L10NL
    
final public static  StringMESSAGE
    
final public static  StringPATH_INFO
    
final public static  StringQUERY_STRING
    
final public static  StringREQUEST_URI
    
final public static  StringSERVLET_NAME
    
final public static  StringSERVLET_PATH
    
final public static  StringSHUTDOWN
    
final public static  StringSTATUS_CODE
    
final protected  QDate_calendar
    
final protected  CharBuffer_cb
    
final protected  Connection_conn
    
protected  boolean_expect100Continue
    
protected  boolean_hasReadStream
    
final protected static  CaseInsensitiveIntMap_headerCodes
    
protected  CharSegment_hostHeader
    
protected  Invocation_invocation
    
final protected  ReadStream_rawRead
    
final protected  ReadStream_readStream
    
protected  AbstractHttpResponse_response
    
final protected  DispatchServer_server
    
protected  int_sessionGroup
    
final protected  TcpConnection_tcpConn
    
final protected static  Loggerlog
    

Constructor Summary
protected  AbstractHttpRequest(DispatchServer server, Connection conn)
     Create a new Request.

Method Summary
public  voidaddCloseOnExit(Path path)
     Adds a file to be removed at the end.
protected  booleanaddHeaderInt(char[] keyBuf, int keyOff, int keyLen, CharSegment value)
     Adds the header, checking for known values.
public  booleanallowKeepalive()
     Returns true if keepalives are allowed.
public  booleanauthenticate()
     Authenticate the user.
public  voidcleanup()
    
protected  voidconnectionClose()
    
protected  StringdbgId()
    
public  StringfindSessionIdFromConnection()
     For SSL connections, use the SSL identifier.
public  voidfinish()
    
public  ObjectgetAttribute(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  StringgetAuthType()
    
public  StringgetCharacterEncoding()
     Returns the character encoding of a post.
final public  ConnectiongetConnection()
     Returns the connection.
public  intgetContentLength()
     Returns the content length of a post.
public  StringgetContentType()
     Returns the content-length of a post.
public  CharSegmentgetContentTypeBuffer()
     Returns the content-length of a post.
public  StringgetContextPath()
     Returns the context part of the uri.
public  CookiegetCookie(String name)
    
public  Cookie[]getCookies()
    
public  longgetDateHeader(String key)
     Returns a header interpreted as a date.
Parameters:
  key - the header key.
final public  DispatchServergetDispatchServer()
     returns the dispatch server.
public  booleangetHasCookie()
     True if this page uses cookies.
abstract public  StringgetHeader(String key)
     Returns the named header.
public  CharSegmentgetHeaderBuffer(String name)
     Fills the result with the header values as CharSegment values.
public  voidgetHeaderBuffers(String name, ArrayList<CharSegment> resultList)
     Fills the result with a list of the header values as CharSegment values.
public  CharSegmentgetHeaderKey(int index)
    
abstract public  EnumerationgetHeaderNames()
    
public  intgetHeaderSize()
     Returns the number of headers.
public  CharSegmentgetHeaderValue(int index)
    
public  EnumerationgetHeaders(String name)
     Returns an enumeration of the headers for the named attribute.
protected  CharSequencegetHost()
    
public  ServletInputStreamgetInputStream()
     Returns a stream for reading POST data.
public  intgetIntHeader(String key)
     Returns the named header, converted to an integer.
Parameters:
  key - the header key.
final public  InvocationgetInvocation()
     Returns the request's invocation.
public  HttpSessiongetLoadedSession()
     Returns the current session.
public  StringgetLocalAddr()
     Returns the server's address.
public  StringgetLocalName()
     Returns the server's address.
public  intgetLocalPort()
     Returns the local port.
public  LocalegetLocale()
    
public  Enumeration<Locale>getLocales()
    
final public  byte[]getLogBuffer()
     Returns the log buffer.
public  longgetLongContentLength()
     Returns the content length of a post.
public  HttpSessiongetMemorySession()
     Returns the memory session.
abstract public  StringgetMethod()
    
public  StringgetPageContextPath()
     Returns the context part of the uri.
public  StringgetPagePathInfo()
     Returns the portion of the uri after the servlet path for the current page.
public  StringgetPageQueryString()
     Returns the current page's query string.
public  StringgetPageServletPath()
     Returns the portion of the uri mapped to the servlet for the current page.
public  StringgetPageURI()
     Returns the URI for the page.
public  StringgetParameter(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  StringgetPathInfo()
     Returns the portion of the uri after the servlet path for the original request.
public  StringgetPathTranslated()
     Returns the real path of pathInfo.
abstract public  StringgetProtocol()
    
public  StringgetQueryString()
     Returns the current page's query string.
public  ReadStreamgetRawInput()
     Returns the raw input stream.
public  byte[]getRawReadBuffer()
     Returns the raw read buffer.
public  BufferedReadergetReader()
    
public  StringgetRealPath(String path)
    
public  StringgetRemoteAddr()
    
public  StringgetRemoteHost()
    
public  intgetRemotePort()
     Returns the local port.
public  StringgetRemoteUser(boolean create)
     Internal logging return to get the remote user.
public  StringgetRemoteUser()
    
public  intgetRequestDepth(int depth)
     Returns the depth of the request calls.
public  intgetRequestDepth()
    
public  RequestDispatchergetRequestDispatcher(String path)
     Returns a request dispatcher relative to the current request.
public  StringgetRequestURI()
    
public  StringBuffergetRequestURL()
    
public  StringgetRequestedSessionId()
     Returns the session id in the HTTP request.
public  StringgetRequestedSessionIdNoVary()
     Returns the session id in the HTTP request.
public  CauchoResponsegetResponse()
     Returns the response for this request.
public  StringgetScheme()
     Returns the request's scheme.
public  StringgetServerName()
     Returns the local server name.
public  intgetServerPort()
     Returns the server's port.
public  StringgetServletName()
     Returns the servlet name.
public  StringgetServletPath()
     Returns the portion of the uri mapped to the servlet for the original request.
public  HttpSessiongetSession()
     Returns the current session, creating one if necessary.
public  HttpSessiongetSession(boolean create)
     Returns the current session.
final protected  StringgetSessionCookie(SessionManager manager)
     Returns the session cookie.
public  intgetSessionGroup()
    
final protected  SessionManagergetSessionManager()
     Returns the session manager.
final public  longgetStartTime()
     Returns the date for the current request.
public  ReadStreamgetStream()
     Returns the requests underlying read stream, e.g.
public  ReadStreamgetStream(boolean isReader)
     Returns the requests underlying read stream, e.g.
abstract public  byte[]getUriBuffer()
    
abstract public  intgetUriLength()
    
public  PrincipalgetUserPrincipal()
     Returns the Principal representing the logged in user.
public  StringgetVaryCookie()
     Returns the cookie the page depends on, or null if the page depends on several cookies.
public  booleangetVaryCookies()
     Returns true if the page depends on cookies.
final public  WebAppgetWebApp()
     Returns the invocation's webApp.
public  booleanhandleResume()
     Handles a comet-style resume.
public  voidinit()
     Initialization.
abstract protected  booleaninitStream(ReadStream readStream, ReadStream rawStream)
     Initialize the read stream from the raw stream.
public  booleanisIgnoreClientDisconnect()
     Returns true if client disconnects should be ignored.
protected  booleanisKeepalive()
     Returns true if the keepalive is active.
public  booleanisRequestedSessionIdFromCookie()
     Returns true if the current sessionId came from a cookie.
public  booleanisRequestedSessionIdFromURL()
     Returns true if the current sessionId came from the url.
public  booleanisRequestedSessionIdFromUrl()
    
public  booleanisRequestedSessionIdValid()
     Returns true if the HTTP request's session id refers to a valid session.
public  booleanisSecure()
     Returns true if the request is secure.
public  booleanisTop()
    
public  booleanisTransportSecure()
     Returns true if the transport is secure.
public  booleanisUserInRole(String role)
     Returns true if the user represented by the current request plays the named role.
Parameters:
  role - the named role to test.
public  voidkillKeepalive()
     Kills the keepalive.
public  voidlogout()
     Logs out the principal.
public  voidlogoutUserPrincipal()
     Clear the principal from the request object.
public  intprintRemoteAddr(byte[] buffer, int offset)
    
public  voidremoveAttribute(String name)
     Removes the value of the named request attribute.
protected  voidrestartServer()
     Restarts the server.
protected  voidresume()
     Prepare the Request object for a new request.
public  StringrunAs(String role)
     Sets the overriding role.
 voidsaveSession()
    
public  voidsetAttribute(String name, Object value)
     Sets the value of the named request attribute.
public  voidsetCharacterEncoding(String encoding)
     Sets the character encoding of a post.
public  voidsetHasCookie()
     Set when the page actually has a cookie.
public  voidsetHeader(String key, String value)
     Sets the header.
final public  voidsetInvocation(Invocation invocation)
     Sets the request's invocation.
final protected  voidsetStartTime()
     Sets the start time to the current time.
public  voidsetVaryCookie(String cookie)
     Called if the page depends on a cookie.
protected  voidskip()
    
protected  voidstart()
     Prepare the Request object for a new request.

Field Detail
CONTEXT_PATH
final public static String CONTEXT_PATH(Code)



ERROR_URI
final public static String ERROR_URI(Code)



EXCEPTION
final public static String EXCEPTION(Code)



EXCEPTION_TYPE
final public static String EXCEPTION_TYPE(Code)



JSP_EXCEPTION
final public static String JSP_EXCEPTION(Code)



L
final static L10N L(Code)



MESSAGE
final public static String MESSAGE(Code)



PATH_INFO
final public static String PATH_INFO(Code)



QUERY_STRING
final public static String QUERY_STRING(Code)



REQUEST_URI
final public static String REQUEST_URI(Code)



SERVLET_NAME
final public static String SERVLET_NAME(Code)



SERVLET_PATH
final public static String SERVLET_PATH(Code)



SHUTDOWN
final public static String SHUTDOWN(Code)



STATUS_CODE
final public static String STATUS_CODE(Code)



_calendar
final protected QDate _calendar(Code)



_cb
final protected CharBuffer _cb(Code)



_conn
final protected Connection _conn(Code)



_expect100Continue
protected boolean _expect100Continue(Code)



_hasReadStream
protected boolean _hasReadStream(Code)



_headerCodes
final protected static CaseInsensitiveIntMap _headerCodes(Code)



_hostHeader
protected CharSegment _hostHeader(Code)



_invocation
protected Invocation _invocation(Code)



_rawRead
final protected ReadStream _rawRead(Code)



_readStream
final protected ReadStream _readStream(Code)



_response
protected AbstractHttpResponse _response(Code)



_server
final protected DispatchServer _server(Code)



_sessionGroup
protected int _sessionGroup(Code)



_tcpConn
final protected TcpConnection _tcpConn(Code)



log
final protected static Logger log(Code)




Constructor Detail
AbstractHttpRequest
protected AbstractHttpRequest(DispatchServer server, Connection conn)(Code)
Create a new Request. Because the actual initialization occurs with the start() method, this just allocates statics.
Parameters:
  server - the parent server




Method Detail
addCloseOnExit
public void addCloseOnExit(Path path)(Code)
Adds a file to be removed at the end.



addHeaderInt
protected boolean addHeaderInt(char[] keyBuf, int keyOff, int keyLen, CharSegment value)(Code)
Adds the header, checking for known values.



allowKeepalive
public boolean allowKeepalive()(Code)
Returns true if keepalives are allowed. This method should only be called once, when the response is deciding whether to send the Connection: close (or 'Q' vs 'X'), after that, the calling routines should call isKeepalive() to see what the decision was. Otherwise, the browser might see a keepalive when the final decision is to close the connection.



authenticate
public boolean authenticate() throws ServletException, IOException(Code)
Authenticate the user.



cleanup
public void cleanup()(Code)



connectionClose
protected void connectionClose()(Code)
Called for a connection: close



dbgId
protected String dbgId()(Code)



findSessionIdFromConnection
public String findSessionIdFromConnection()(Code)
For SSL connections, use the SSL identifier.



finish
public void finish() throws IOException(Code)
Cleans up at the end of the request



getAttribute
public Object getAttribute(String name)(Code)
Returns the value of the named request attribute.
Parameters:
  name - the attribute name. the attribute value.



getAttributeNames
public Enumeration<String> getAttributeNames()(Code)
Returns an enumeration of the request attribute names.



getAuthType
public String getAuthType()(Code)
Gets the authorization type



getCharacterEncoding
public String getCharacterEncoding()(Code)
Returns the character encoding of a post.



getConnection
final public Connection getConnection()(Code)
Returns the connection.



getContentLength
public int getContentLength()(Code)
Returns the content length of a post.



getContentType
public String getContentType()(Code)
Returns the content-length of a post.



getContentTypeBuffer
public CharSegment getContentTypeBuffer()(Code)
Returns the content-length of a post.



getContextPath
public String getContextPath()(Code)
Returns the context part of the uri. The context part is the part that maps to an webApp.



getCookie
public Cookie getCookie(String name)(Code)
Returns the named cookie from the browser



getCookies
public Cookie[] getCookies()(Code)
Returns the cookies from the browser



getDateHeader
public long getDateHeader(String key)(Code)
Returns a header interpreted as a date.
Parameters:
  key - the header key. the value of the header as an integer.



getDispatchServer
final public DispatchServer getDispatchServer()(Code)
returns the dispatch server.



getHasCookie
public boolean getHasCookie()(Code)
True if this page uses cookies.



getHeader
abstract public String getHeader(String key)(Code)
Returns the named header.
Parameters:
  key - the header key



getHeaderBuffer
public CharSegment getHeaderBuffer(String name)(Code)
Fills the result with the header values as CharSegment values. Most implementations will implement this directly.
Parameters:
  name - the header name



getHeaderBuffers
public void getHeaderBuffers(String name, ArrayList<CharSegment> resultList)(Code)
Fills the result with a list of the header values as CharSegment values. Most implementations will implement this directly.
Parameters:
  name - the header name
Parameters:
  resultList - the resulting buffer



getHeaderKey
public CharSegment getHeaderKey(int index)(Code)
Returns the header key



getHeaderNames
abstract public Enumeration getHeaderNames()(Code)
Enumerates the header keys



getHeaderSize
public int getHeaderSize()(Code)
Returns the number of headers.



getHeaderValue
public CharSegment getHeaderValue(int index)(Code)
Returns the header value



getHeaders
public Enumeration getHeaders(String name)(Code)
Returns an enumeration of the headers for the named attribute.
Parameters:
  name - the header name



getHost
protected CharSequence getHost()(Code)



getInputStream
public ServletInputStream getInputStream() throws IOException(Code)
Returns a stream for reading POST data.



getIntHeader
public int getIntHeader(String key)(Code)
Returns the named header, converted to an integer.
Parameters:
  key - the header key. the value of the header as an integer.



getInvocation
final public Invocation getInvocation()(Code)
Returns the request's invocation.



getLoadedSession
public HttpSession getLoadedSession()(Code)
Returns the current session.
Parameters:
  create - true if a new session should be created the current session



getLocalAddr
public String getLocalAddr()(Code)
Returns the server's address.



getLocalName
public String getLocalName()(Code)
Returns the server's address.



getLocalPort
public int getLocalPort()(Code)
Returns the local port.



getLocale
public Locale getLocale()(Code)



getLocales
public Enumeration<Locale> getLocales()(Code)



getLogBuffer
final public byte[] getLogBuffer()(Code)
Returns the log buffer.



getLongContentLength
public long getLongContentLength()(Code)
Returns the content length of a post.



getMemorySession
public HttpSession getMemorySession()(Code)
Returns the memory session.



getMethod
abstract public String getMethod()(Code)



getPageContextPath
public String getPageContextPath()(Code)
Returns the context part of the uri. For included files, this will return the included context-path.



getPagePathInfo
public String getPagePathInfo()(Code)
Returns the portion of the uri after the servlet path for the current page.



getPageQueryString
public String getPageQueryString()(Code)
Returns the current page's query string.



getPageServletPath
public String getPageServletPath()(Code)
Returns the portion of the uri mapped to the servlet for the current page.



getPageURI
public String getPageURI()(Code)
Returns the URI for the page. getPageURI and getRequestURI differ for included files. getPageURI gets the URI for the included page. getRequestURI returns the original URI.



getParameter
public String getParameter(String name)(Code)
Returns the form primary value for the given name.



getParameterMap
public Map<String, String[]> getParameterMap()(Code)
Returns a map of the form.



getParameterNames
public Enumeration<String> getParameterNames()(Code)
Returns an enumeration of the form names.



getParameterValues
public String[] getParameterValues(String name)(Code)
Returns the form's values for the given name.
Parameters:
  name - key in the form value matching the key



getPathInfo
public String getPathInfo()(Code)
Returns the portion of the uri after the servlet path for the original request.



getPathTranslated
public String getPathTranslated()(Code)
Returns the real path of pathInfo.



getProtocol
abstract public String getProtocol()(Code)



getQueryString
public String getQueryString()(Code)
Returns the current page's query string.



getRawInput
public ReadStream getRawInput()(Code)
Returns the raw input stream.



getRawReadBuffer
public byte[] getRawReadBuffer()(Code)
Returns the raw read buffer.



getReader
public BufferedReader getReader() throws IOException(Code)
Returns a Reader for the POST contents



getRealPath
public String getRealPath(String path)(Code)



getRemoteAddr
public String getRemoteAddr()(Code)



getRemoteHost
public String getRemoteHost()(Code)



getRemotePort
public int getRemotePort()(Code)
Returns the local port.



getRemoteUser
public String getRemoteUser(boolean create)(Code)
Internal logging return to get the remote user. If the request already knows the user, get it, otherwise just return null.



getRemoteUser
public String getRemoteUser()(Code)
Gets the remote user from the authorization type



getRequestDepth
public int getRequestDepth(int depth)(Code)
Returns the depth of the request calls.



getRequestDepth
public int getRequestDepth()(Code)



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)(Code)
Returns a request dispatcher relative to the current request.
Parameters:
  path - the relative uri to the new servlet.



getRequestURI
public String getRequestURI()(Code)
Returns the URI for the request



getRequestURL
public StringBuffer getRequestURL()(Code)
Returns the URL for the request



getRequestedSessionId
public String getRequestedSessionId()(Code)
Returns the session id in the HTTP request. The cookie has priority over the URL. Because the webApp might be using the cookie to change the page contents, the caching sets vary: JSESSIONID.



getRequestedSessionIdNoVary
public String getRequestedSessionIdNoVary()(Code)
Returns the session id in the HTTP request. The cookie has priority over the URL. Because the webApp might be using the cookie to change the page contents, the caching sets vary: JSESSIONID.



getResponse
public CauchoResponse getResponse()(Code)
Returns the response for this request.



getScheme
public String getScheme()(Code)
Returns the request's scheme.



getServerName
public String getServerName()(Code)
Returns the local server name.



getServerPort
public int getServerPort()(Code)
Returns the server's port.



getServletName
public String getServletName()(Code)
Returns the servlet name.



getServletPath
public String getServletPath()(Code)
Returns the portion of the uri mapped to the servlet for the original request.



getSession
public HttpSession getSession()(Code)
Returns the current session, creating one if necessary.



getSession
public HttpSession getSession(boolean create)(Code)
Returns the current session.
Parameters:
  create - true if a new session should be created the current session



getSessionCookie
final protected String getSessionCookie(SessionManager manager)(Code)
Returns the session cookie.



getSessionGroup
public int getSessionGroup()(Code)



getSessionManager
final protected SessionManager getSessionManager()(Code)
Returns the session manager.



getStartTime
final public long getStartTime()(Code)
Returns the date for the current request.



getStream
public ReadStream getStream() throws IOException(Code)
Returns the requests underlying read stream, e.g. the post stream.



getStream
public ReadStream getStream(boolean isReader) throws IOException(Code)
Returns the requests underlying read stream, e.g. the post stream.



getUriBuffer
abstract public byte[] getUriBuffer()(Code)



getUriLength
abstract public int getUriLength()(Code)



getUserPrincipal
public Principal getUserPrincipal()(Code)
Returns the Principal representing the logged in user.



getVaryCookie
public String getVaryCookie()(Code)
Returns the cookie the page depends on, or null if the page depends on several cookies.



getVaryCookies
public boolean getVaryCookies()(Code)
Returns true if the page depends on cookies.



getWebApp
final public WebApp getWebApp()(Code)
Returns the invocation's webApp.



handleResume
public boolean handleResume() throws IOException(Code)
Handles a comet-style resume. true if the connection should stay open (keepalive)



init
public void init()(Code)
Initialization.



initStream
abstract protected boolean initStream(ReadStream readStream, ReadStream rawStream) throws IOException(Code)
Initialize the read stream from the raw stream.



isIgnoreClientDisconnect
public boolean isIgnoreClientDisconnect()(Code)
Returns true if client disconnects should be ignored.



isKeepalive
protected boolean isKeepalive()(Code)
Returns true if the keepalive is active.



isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()(Code)
Returns true if the current sessionId came from a cookie.



isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()(Code)
Returns true if the current sessionId came from the url.



isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()(Code)



isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()(Code)
Returns true if the HTTP request's session id refers to a valid session.



isSecure
public boolean isSecure()(Code)
Returns true if the request is secure.



isTop
public boolean isTop()(Code)
Returns true for the top-level request, but false for any include() or forward()



isTransportSecure
public boolean isTransportSecure()(Code)
Returns true if the transport is secure.



isUserInRole
public boolean isUserInRole(String role)(Code)
Returns true if the user represented by the current request plays the named role.
Parameters:
  role - the named role to test. true if the user plays the role.



killKeepalive
public void killKeepalive()(Code)
Kills the keepalive.



logout
public void logout()(Code)
Logs out the principal.



logoutUserPrincipal
public void logoutUserPrincipal()(Code)
Clear the principal from the request object.



printRemoteAddr
public int printRemoteAddr(byte[] buffer, int offset) throws IOException(Code)



removeAttribute
public void removeAttribute(String name)(Code)
Removes the value of the named request attribute.
Parameters:
  name - the attribute name.



restartServer
protected void restartServer() throws IOException, ServletException(Code)
Restarts the server.



resume
protected void resume() throws IOException(Code)
Prepare the Request object for a new request.
Parameters:
  s - the raw connection stream



runAs
public String runAs(String role)(Code)
Sets the overriding role.



saveSession
void saveSession()(Code)



setAttribute
public void setAttribute(String name, Object value)(Code)
Sets the value of the named request attribute.
Parameters:
  name - the attribute name.
Parameters:
  value - the new attribute value.



setCharacterEncoding
public void setCharacterEncoding(String encoding) throws UnsupportedEncodingException(Code)
Sets the character encoding of a post.



setHasCookie
public void setHasCookie()(Code)
Set when the page actually has a cookie.



setHeader
public void setHeader(String key, String value)(Code)
Sets the header. setHeader is used for Resin's caching to simulate If-None-Match.



setInvocation
final public void setInvocation(Invocation invocation)(Code)
Sets the request's invocation.



setStartTime
final protected void setStartTime()(Code)
Sets the start time to the current time.



setVaryCookie
public void setVaryCookie(String cookie)(Code)
Called if the page depends on a cookie. If the cookie is null, then the page depends on all cookies.
Parameters:
  cookie - the cookie the page depends on.



skip
protected void skip() throws IOException(Code)



start
protected void start() throws IOException(Code)
Prepare the Request object for a new request.
Parameters:
  s - the raw connection stream



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.