Java Doc for RimfaxeHttpServletRequest.java in  » Web-Server » Rimfaxe-Web-Server » com » rimfaxe » webserver » servletapi » 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 » Web Server » Rimfaxe Web Server » com.rimfaxe.webserver.servletapi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.rimfaxe.webserver.servletapi.RimfaxeHttpServletRequest

RimfaxeHttpServletRequest
public class RimfaxeHttpServletRequest implements HttpServletRequest(Code)


Field Summary
final public static  intHTTPVER_09
     getHttpVer() code corresponding to HTTP/0.9.
final public static  intHTTPVER_10
     getHttpVer() code corresponding to HTTP/1.0.
final public static  intHTTPVER_11
     getHttpVer() code corresponding to HTTP/1.1.
final public static  StringSTATE_PARAMETERS
    
protected  RimfaxeHttpSessionhttpSession
    
protected  BufferedReaderreader
    
protected  StringrequestedSessionID
    
protected  RimfaxeHttpServletResponseresponse
    
 SessionStoresessionstore
    
 WebContextwebcontext
    

Constructor Summary
 RimfaxeHttpServletRequest(Servlet servlet, httpRequest request, RimfaxeHttpServletResponse response, WebContext webcontext)
    

Method Summary
protected  CookiecreateCookie()
    
public  ObjectgetAttribute(String name)
    
public  EnumerationgetAttributeNames()
    
public  StringgetAuthType()
     HttpServletRequest implementation - Get the request's auth method.
public  StringgetCharacterEncoding()
    
public  intgetContentLength()
     ServletRequest implementation - Get the length of request data.
public  StringgetContentType()
     ServletRequest implementation - Get the type of the request's body.
public  StringgetContextPath()
     Returns the portion of the request URI that indicates the context of the request.
protected  StringgetCookieName()
    
public  Cookie[]getCookies()
     Gets the array of cookies found in this request.
public  longgetDateHeader(String name)
     HttpServletRequest implementation - Get a request header as an date.
public  StringgetHeader(String name)
     HttpServletRequest implementation - Get a request header as a String.
public  EnumerationgetHeaderNames()
     HttpServletRequest implementation - Get a all header names.
public  EnumerationgetHeaders(String name)
     Returns all the values of the specified request header as an Enumeration of String objects.
public  intgetHttpVer()
     Return the code corresponding to the HTTP version.
public  ServletInputStreamgetInputStream()
    
public  intgetIntHeader(String name)
     HttpServletRequest implementation - Get a request header as an int.
public  LocalegetLocale()
     Returns the preferred Locale that the client will accept content in, based on the Accept-Language header.
public  EnumerationgetLocales()
     Returns an Enumeration of Locale objects indicating, in decreasing order starting with the preferred locale, the locales that are acceptable to the client based on the Accept-Language header.
public  StringgetMethod()
     HttpServletRequest implementation - Get the request's method.
public  StringgetParameter(String name)
     ServletRequest implementation - Get a parameter value.
public  java.util.MapgetParameterMap()
    
public  EnumerationgetParameterNames()
     ServletRequest implementation - List available parameters.
public  String[]getParameterValues(String parameter)
     ServletRequest implementation - Get the parameters value.
public  StringgetPathInfo()
     HttpServletRequest implementation - Get the request's path info.
public  StringgetPathTranslated()
     HttpServletRequest implementation - Get the request's path translated.
public  StringgetProtocol()
     ServletRequest implementation - Get the protocol of that request.
public  StringgetQueryString()
     HttpServletRequest implementation - Get the request's query string.
public  BufferedReadergetReader()
     Returns a buffered reader for reading text in the request body.
public  StringgetRealPath(String name)
    
public  StringgetRemoteAddr()
     ServletRequest implementation - Get the IP address of requests's sender.
public  StringgetRemoteHost()
     ServletRequest implementation - FQDN of request's sender.
public  StringgetRemoteUser()
     HttpServletRequest implementation - Get the request's user (if any).
protected  httpRequestgetRequest()
     Get the wrapped Seda Request.
public  RequestDispatchergetRequestDispatcher(String path)
     Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path.
public  StringgetRequestURI()
     Gets, from the first line of the HTTP request, the part of this request's URI that is to the left of any query string.
public  StringBuffergetRequestURL()
    
public  StringgetRequestedSessionId()
     Gets the session id specified with this request.
protected  StringgetRequestedSessionIdFromCookie()
    
protected  StringgetRequestedSessionIdFromURL()
    
public  StringgetScheme()
     the scheme of the URL used in this request, for example "http","https", or "ftp".
public  StringgetServerName()
     ServletRequest implementation - Get the name of queried server.
public  intgetServerPort()
     ServletRequest implementation - Get the port of queried server.
public  StringgetServletPath()
     Gets the part of this request's URI that refers to the servlet being invoked.
public  HttpSessiongetSession(boolean create)
     Gets the current valid session associated with this request, if create is false or, if necessary, creates a new session for the request, if create is true.
public  HttpSessiongetSession()
     Gets the current valid session associated with this request.
protected  HttpSessiongetSession(String sessionId)
    
public  PrincipalgetUserPrincipal()
     Returns a java.security.Principal object containing the name of the current authenticated user.
public  booleanhasQueryString()
    
public  booleanisRequestedSessionIdFromCookie()
     Checks whether the session id specified by this request came in as a cookie.
public  booleanisRequestedSessionIdFromURL()
     Checks whether the session id specified by this request came in as part of the URL.
public  booleanisRequestedSessionIdFromUrl()
     Checks whether the session id specified by this request came in as part of the URL.
public  booleanisRequestedSessionIdValid()
     Checks whether this request is associated with a session that is valid in the current session context.
public  booleanisSecure()
     Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS.
public  booleanisUserInRole(String role)
     Returns a boolean indicating whether the authenticated user is included in the specified logical "role".
public  StringprependRealPath(String name)
    
public  voidremoveAttribute(String name)
     Removes an attribute from this request.
public  voidsetAttribute(String name, Object object)
    
public  voidsetCharacterEncoding(String str)
    

Field Detail
HTTPVER_09
final public static int HTTPVER_09(Code)
getHttpVer() code corresponding to HTTP/0.9.



HTTPVER_10
final public static int HTTPVER_10(Code)
getHttpVer() code corresponding to HTTP/1.0.



HTTPVER_11
final public static int HTTPVER_11(Code)
getHttpVer() code corresponding to HTTP/1.1.



STATE_PARAMETERS
final public static String STATE_PARAMETERS(Code)



httpSession
protected RimfaxeHttpSession httpSession(Code)



reader
protected BufferedReader reader(Code)



requestedSessionID
protected String requestedSessionID(Code)



response
protected RimfaxeHttpServletResponse response(Code)



sessionstore
SessionStore sessionstore(Code)



webcontext
WebContext webcontext(Code)




Constructor Detail
RimfaxeHttpServletRequest
RimfaxeHttpServletRequest(Servlet servlet, httpRequest request, RimfaxeHttpServletResponse response, WebContext webcontext)(Code)




Method Detail
createCookie
protected Cookie createCookie()(Code)



getAttribute
public Object getAttribute(String name)(Code)



getAttributeNames
public Enumeration getAttributeNames()(Code)



getAuthType
public String getAuthType()(Code)
HttpServletRequest implementation - Get the request's auth method. A String instance or null.



getCharacterEncoding
public String getCharacterEncoding()(Code)
Return the Charset parameter of content type A String instance



getContentLength
public int getContentLength()(Code)
ServletRequest implementation - Get the length of request data. An int, or -1.



getContentType
public String getContentType()(Code)
ServletRequest implementation - Get the type of the request's body. A String encoded mime type, or null.



getContextPath
public String getContextPath()(Code)
Returns the portion of the request URI that indicates the context of the request. The context path always comes first in a request URI. The path starts with a "/" character but does not end with a "/" character. For servlets in the default (root) context, this method returns "". a String specifying the portion of the request URI that indicates the context of the request



getCookieName
protected String getCookieName()(Code)



getCookies
public Cookie[] getCookies()(Code)
Gets the array of cookies found in this request. the array of cookies found in this request ornull if there is no cookie.



getDateHeader
public long getDateHeader(String name)(Code)
HttpServletRequest implementation - Get a request header as an date. An long (as a number of milliseconds), or -1.



getHeader
public String getHeader(String name)(Code)
HttpServletRequest implementation - Get a request header as a String. A String instance or null.



getHeaderNames
public Enumeration getHeaderNames()(Code)
HttpServletRequest implementation - Get a all header names. An enumeration.



getHeaders
public Enumeration getHeaders(String name)(Code)
Returns all the values of the specified request header as an Enumeration of String objects.
Parameters:
  name - a String specifying the header name a Enumeration containing the values of the requested header, or null if the request does nothave any headers of that name



getHttpVer
public int getHttpVer()(Code)
Return the code corresponding to the HTTP version. Each code has one of the HTTPVER_* values from this class.



getInputStream
public ServletInputStream getInputStream() throws IOException(Code)



getIntHeader
public int getIntHeader(String name)(Code)
HttpServletRequest implementation - Get a request header as an int. An int, or -1.



getLocale
public Locale getLocale()(Code)
Returns the preferred Locale that the client will accept content in, based on the Accept-Language header. If the client request doesn't provide an Accept-Language header, this method returns the default locale for the server. the preferred Locale for the client



getLocales
public Enumeration getLocales()(Code)
Returns an Enumeration of Locale objects indicating, in decreasing order starting with the preferred locale, the locales that are acceptable to the client based on the Accept-Language header. If the client request doesn't provide an Accept-Language header, this method returns an Enumeration containing one Locale, the default locale for the server. an Enumeration of preferred Locale objects for the client



getMethod
public String getMethod()(Code)
HttpServletRequest implementation - Get the request's method. A String instance.



getParameter
public String getParameter(String name)(Code)
ServletRequest implementation - Get a parameter value. The String encoded value for the parameter.



getParameterMap
public java.util.Map getParameterMap()(Code)



getParameterNames
public Enumeration getParameterNames()(Code)
ServletRequest implementation - List available parameters. An enumeration of parameter names.



getParameterValues
public String[] getParameterValues(String parameter)(Code)
ServletRequest implementation - Get the parameters value. The String array encoded value for the parameter.



getPathInfo
public String getPathInfo()(Code)
HttpServletRequest implementation - Get the request's path info. A String instance or null.



getPathTranslated
public String getPathTranslated()(Code)
HttpServletRequest implementation - Get the request's path translated. A String instance or null.



getProtocol
public String getProtocol()(Code)
ServletRequest implementation - Get the protocol of that request. A String encoded version of the protocol.



getQueryString
public String getQueryString()(Code)
HttpServletRequest implementation - Get the request's query string. A String instance or null.



getReader
public BufferedReader getReader() throws IOException(Code)
Returns a buffered reader for reading text in the request body. This translates character set encodings as appropriate.
exception:
  UnsupportedEncodingException - if the character set encoding is unsupported, so the text can't be correctly decoded.
exception:
  IllegalStateException - if getInputStream has been called on this same request.
exception:
  IOException - on other I/O related errors.



getRealPath
public String getRealPath(String name)(Code)



getRemoteAddr
public String getRemoteAddr()(Code)
ServletRequest implementation - Get the IP address of requests's sender. Numeric IP address, as a String.



getRemoteHost
public String getRemoteHost()(Code)
ServletRequest implementation - FQDN of request's sender. Name of client's machine (FQDN).



getRemoteUser
public String getRemoteUser()(Code)
HttpServletRequest implementation - Get the request's user (if any). A String instance or null.



getRequest
protected httpRequest getRequest()(Code)
Get the wrapped Seda Request. the request



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)(Code)
Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path. A RequestDispatcher object can be used to forward a request to the resource or to include the resource in a response. The resource can be dynamic or static.

The pathname specified may be relative, although it cannot extend outside the current servlet context. If the path begins with a "/" it is interpreted as relative to the current context root. This method returns null if the servlet container cannot return a RequestDispatcher.

The difference between this method and ServletContext.getRequestDispatcher is that this method can take a relative path.
Parameters:
  path - a String specifying the pathnameto the resource a RequestDispatcher object that acts as a wrapper for the resource at the specified path
See Also:   RequestDispatcher
See Also:   ServletContext.getRequestDispatcher




getRequestURI
public String getRequestURI()(Code)
Gets, from the first line of the HTTP request, the part of this request's URI that is to the left of any query string.



getRequestURL
public StringBuffer getRequestURL()(Code)



getRequestedSessionId
public String getRequestedSessionId()(Code)
Gets the session id specified with this request. This may differ from the actual session id. For example, if the request specified an id for an invalid session, then this will get a new session with a new id. the session id specified by this request, or null if the request did not specify a session id.



getRequestedSessionIdFromCookie
protected String getRequestedSessionIdFromCookie()(Code)



getRequestedSessionIdFromURL
protected String getRequestedSessionIdFromURL()(Code)



getScheme
public String getScheme()(Code)
the scheme of the URL used in this request, for example "http","https", or "ftp". Different schemes have different rulesfor constructing URLs, as noted in RFC 1738. The URL used to create a request may be reconstructed using this scheme, the server name and port, and additional information such as URIs.



getServerName
public String getServerName()(Code)
ServletRequest implementation - Get the name of queried server. Name of server, as a String.



getServerPort
public int getServerPort()(Code)
ServletRequest implementation - Get the port of queried server. A port number (int).



getServletPath
public String getServletPath()(Code)
Gets the part of this request's URI that refers to the servlet being invoked. Analogous to the CGI variable SCRIPT_NAME.



getSession
public HttpSession getSession(boolean create)(Code)
Gets the current valid session associated with this request, if create is false or, if necessary, creates a new session for the request, if create is true. the session associated with this request or null if create was false and no valid session is associated with this request.



getSession
public HttpSession getSession()(Code)
Gets the current valid session associated with this request. the session associated with this request.



getSession
protected HttpSession getSession(String sessionId)(Code)



getUserPrincipal
public Principal getUserPrincipal()(Code)
Returns a java.security.Principal object containing the name of the current authenticated user. If the user has not been authenticated, the method returns null. a java.security.Principal containingthe name of the user making this request; null if the user has not been authenticated



hasQueryString
public boolean hasQueryString()(Code)



isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()(Code)
Checks whether the session id specified by this request came in as a cookie. (The requested session may not be one returned by the getSession method.) true if the session id specified by this request came in as a cookie; false otherwise



isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()(Code)
Checks whether the session id specified by this request came in as part of the URL. (The requested session may not be the one returned by the getSession method.) true if the session id specified by the request for this session came in as part of the URL; false otherwise



isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()(Code)
Checks whether the session id specified by this request came in as part of the URL. (The requested session may not be the one returned by the getSession method.) true if the session id specified by the request for this session came in as part of the URL; false otherwise



isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()(Code)
Checks whether this request is associated with a session that is valid in the current session context. If it is not valid, the requested session will never be returned from the getSession method. true if this request is assocated with a session that is valid in the current session context.



isSecure
public boolean isSecure()(Code)
Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS. a boolean indicating if the request was made using asecure channel



isUserInRole
public boolean isUserInRole(String role)(Code)
Returns a boolean indicating whether the authenticated user is included in the specified logical "role". Roles and role membership can be defined using deployment descriptors. If the user has not been authenticated, the method returns false.
Parameters:
  role - a String specifying the name of the role a boolean indicating whether the user making thisrequest belongs to a given role; false if the user has notbeen authenticated



prependRealPath
public String prependRealPath(String name)(Code)



removeAttribute
public void removeAttribute(String name)(Code)
Removes an attribute from this request. This method is not generally needed as attributes only persist as long as the request is being handled.

Attribute names should follow the same conventions as package names. Names beginning with java.*, javax.*, and com.sun.*, are reserved for use by Sun Microsystems.
Parameters:
  name - a String specifying the name of the attribute to remove




setAttribute
public void setAttribute(String name, Object object)(Code)



setCharacterEncoding
public void setCharacterEncoding(String str) throws java.io.UnsupportedEncodingException(Code)



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.