Java Doc for WinstoneRequest.java in  » Web-Server » Winstone » winstone » 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 » Winstone » winstone 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   winstone.WinstoneRequest

WinstoneRequest
public class WinstoneRequest implements HttpServletRequest(Code)
Implements the request interface required by the servlet spec.
author:
   Rick Knowles
version:
   $Id: WinstoneRequest.java,v 1.38 2007/10/28 16:29:02 rickknowles Exp $


Field Summary
final static  StringAUTHORIZATION_HEADER
    
final static  StringCONTENT_LENGTH_HEADER
    
final static  StringCONTENT_TYPE_HEADER
    
final static  StringHOST_HEADER
    
final static  StringIN_COOKIE_HEADER1
    
final static  StringIN_COOKIE_HEADER2
    
final static  StringLOCALE_HEADER
    
final static  StringMETHOD_GET
    
final static  StringMETHOD_HEAD
    
final static  StringMETHOD_POST
    
final static  StringPOST_PARAMETERS
    
protected  Mapattributes
    
protected  StackattributesStack
    
protected  AuthenticationPrincipalauthenticatedUser
    
protected  Stringauthorization
    
protected  intcontentLength
    
protected  StringcontentType
    
protected  Cookiecookies
    
protected  MapcurrentSessionIds
    
protected  StringdeadRequestedSessionId
    
protected  Stringencoding
    
protected static  DateFormatheaderDF
    
protected  Stringheaders
    
protected  HostGrouphostGroup
    
protected  WinstoneInputStreaminputData
    
protected  BufferedReaderinputReader
    
protected  booleanisSecure
    
protected  StringlocalAddr
    
protected  StringlocalName
    
protected  intlocalPort
    
protected  Listlocales
    
protected  Stringmethod
    
protected  Mapparameters
    
protected  StackparametersStack
    
protected  BooleanparsedParameters
    
protected  StringpathInfo
    
protected  Stringprotocol
    
protected  StringqueryString
    
protected  StringremoteIP
    
protected  StringremoteName
    
protected  intremotePort
    
protected  ServletRequestAttributeListenerrequestAttributeListeners
    
protected  ServletRequestListenerrequestListeners
    
protected  StringrequestURI
    
protected  MaprequestedSessionIds
    
protected static  Randomrnd
    
protected  Stringscheme
    
protected  StringserverName
    
protected  intserverPort
    
protected  ServletConfigurationservletConfig
    
protected  StringservletPath
    
protected  WebAppConfigurationwebappConfig
    

Constructor Summary
public  WinstoneRequest()
     InputStream factory method.

Method Summary
public  voidaddIncludeAttributes(String requestURI, String contextPath, String servletPath, String pathInfo, String queryString)
    
public  voidaddIncludeQueryParameters(String queryString)
    
public  voidcleanUp()
    
public  voidclearIncludeStackForForward()
    
public static  StringdecodeURLToken(String in)
    
public  voiddiscardRequestBody()
    
public static  voidextractParameters(String urlEncodedParams, String encoding, Map outputParams, boolean overwrite)
    
public  ObjectgetAttribute(String name)
    
public  EnumerationgetAttributeNames()
    
public  MapgetAttributes()
    
public  StackgetAttributesStack()
    
public  StringgetAuthType()
    
public  StringgetCharacterEncoding()
    
public  intgetContentLength()
    
public  StringgetContentType()
    
public  StringgetContextPath()
    
public  Cookie[]getCookies()
    
public  MapgetCurrentSessionIds()
    
public  longgetDateHeader(String name)
    
public  StringgetDeadRequestedSessionId()
    
public  StringgetEncoding()
    
public  StringgetHeader(String name)
    
public  EnumerationgetHeaderNames()
    
public  EnumerationgetHeaders(String name)
    
public  HostGroupgetHostGroup()
    
public  ServletInputStreamgetInputStream()
    
public  intgetIntHeader(String name)
    
public  ListgetListLocales()
    
public  StringgetLocalAddr()
    
public  StringgetLocalName()
    
public  intgetLocalPort()
    
public  LocalegetLocale()
    
public  EnumerationgetLocales()
    
public  StringgetMethod()
    
public  StringgetParameter(String name)
    
public  MapgetParameterMap()
    
public  EnumerationgetParameterNames()
    
public  String[]getParameterValues(String name)
    
public  MapgetParameters()
    
public  StackgetParametersStack()
    
public  BooleangetParsedParameters()
    
public  StringgetPathInfo()
    
public  StringgetPathTranslated()
    
public  StringgetProtocol()
    
public  StringgetQueryString()
    
public  BufferedReadergetReader()
    
public  StringgetRealPath(String path)
    
public  StringgetRemoteAddr()
    
public  StringgetRemoteHost()
    
public  intgetRemotePort()
    
public  StringgetRemoteUser()
    
public  javax.servlet.RequestDispatchergetRequestDispatcher(String path)
    
public  StringgetRequestURI()
    
public  StringBuffergetRequestURL()
    
public  StringgetRequestedSessionId()
    
public  MapgetRequestedSessionIds()
    
public  StringgetScheme()
    
public  StringgetServerName()
    
public  intgetServerPort()
    
public  ServletConfigurationgetServletConfig()
    
public  StringgetServletPath()
    
public  HttpSessiongetSession()
    
public  HttpSessiongetSession(boolean create)
    
public  PrincipalgetUserPrincipal()
    
public  WebAppConfigurationgetWebAppConfig()
    
public  booleanisRequestedSessionIdFromCookie()
    
public  booleanisRequestedSessionIdFromURL()
    
public  booleanisRequestedSessionIdFromUrl()
    
public  booleanisRequestedSessionIdValid()
    
public  booleanisSecure()
    
public  booleanisUserInRole(String role)
    
public  voidmarkSessionsAsRequestFinished(long lastAccessedTime, boolean saveSessions)
    
public  voidparseHeaders(List headerList)
     Go through the list of headers, and build the headers/cookies arrays for the request object.
public  voidparseRequestParameters()
     This takes the parameters in the body of the request and puts them into the parameters map.
public  voidremoveAttribute(String name)
    
public  voidremoveIncludeAttributes()
    
public  voidremoveIncludeQueryString()
    
public  voidsetAttribute(String name, Object o)
    
public  voidsetAuthorization(String auth)
    
public  voidsetCharacterEncoding(String encoding)
    
public  voidsetContentLength(int len)
    
public  voidsetContentType(String type)
    
public  voidsetCurrentSessionIds(Map currentSessionIds)
    
public  voidsetDeadRequestedSessionId(String deadRequestedSessionId)
    
public  voidsetEncoding(String encoding)
    
public  voidsetForwardQueryString(String forwardQueryString)
    
public  voidsetHostGroup(HostGroup hostGroup)
    
public  voidsetInputStream(WinstoneInputStream inputData)
    
public  voidsetIsSecure(boolean isSecure)
    
public  voidsetLocalAddr(String ip)
    
public  voidsetLocalName(String name)
    
public  voidsetLocalPort(int port)
    
public  voidsetLocales(List locales)
    
public  voidsetMethod(String method)
    
public  voidsetParsedParameters(Boolean parsed)
    
public  voidsetPathInfo(String pathInfo)
    
public  voidsetProtocol(String protocolString)
    
public  voidsetQueryString(String queryString)
    
public  voidsetRemoteIP(String remoteIP)
    
public  voidsetRemoteName(String name)
    
public  voidsetRemotePort(int port)
    
public  voidsetRemoteUser(AuthenticationPrincipal user)
    
public  voidsetRequestAttributeListeners(ServletRequestAttributeListener ral)
    
public  voidsetRequestListeners(ServletRequestListener rl)
    
public  voidsetRequestURI(String requestURI)
    
public  voidsetRequestedSessionIds(Map requestedSessionIds)
    
public  voidsetScheme(String scheme)
    
public  voidsetServerName(String name)
    
public  voidsetServerPort(int port)
    
public  voidsetServletConfig(ServletConfiguration servletConfig)
    
public  voidsetServletPath(String servletPath)
    
public  voidsetWebAppConfig(WebAppConfiguration webappConfig)
    

Field Detail
AUTHORIZATION_HEADER
final static String AUTHORIZATION_HEADER(Code)



CONTENT_LENGTH_HEADER
final static String CONTENT_LENGTH_HEADER(Code)



CONTENT_TYPE_HEADER
final static String CONTENT_TYPE_HEADER(Code)



HOST_HEADER
final static String HOST_HEADER(Code)



IN_COOKIE_HEADER1
final static String IN_COOKIE_HEADER1(Code)



IN_COOKIE_HEADER2
final static String IN_COOKIE_HEADER2(Code)



LOCALE_HEADER
final static String LOCALE_HEADER(Code)



METHOD_GET
final static String METHOD_GET(Code)



METHOD_HEAD
final static String METHOD_HEAD(Code)



METHOD_POST
final static String METHOD_POST(Code)



POST_PARAMETERS
final static String POST_PARAMETERS(Code)



attributes
protected Map attributes(Code)



attributesStack
protected Stack attributesStack(Code)



authenticatedUser
protected AuthenticationPrincipal authenticatedUser(Code)



authorization
protected String authorization(Code)



contentLength
protected int contentLength(Code)



contentType
protected String contentType(Code)



cookies
protected Cookie cookies(Code)



currentSessionIds
protected Map currentSessionIds(Code)



deadRequestedSessionId
protected String deadRequestedSessionId(Code)



encoding
protected String encoding(Code)



headerDF
protected static DateFormat headerDF(Code)



headers
protected String headers(Code)



hostGroup
protected HostGroup hostGroup(Code)



inputData
protected WinstoneInputStream inputData(Code)



inputReader
protected BufferedReader inputReader(Code)



isSecure
protected boolean isSecure(Code)



localAddr
protected String localAddr(Code)



localName
protected String localName(Code)



localPort
protected int localPort(Code)



locales
protected List locales(Code)



method
protected String method(Code)



parameters
protected Map parameters(Code)



parametersStack
protected Stack parametersStack(Code)



parsedParameters
protected Boolean parsedParameters(Code)



pathInfo
protected String pathInfo(Code)



protocol
protected String protocol(Code)



queryString
protected String queryString(Code)



remoteIP
protected String remoteIP(Code)



remoteName
protected String remoteName(Code)



remotePort
protected int remotePort(Code)



requestAttributeListeners
protected ServletRequestAttributeListener requestAttributeListeners(Code)



requestListeners
protected ServletRequestListener requestListeners(Code)



requestURI
protected String requestURI(Code)



requestedSessionIds
protected Map requestedSessionIds(Code)



rnd
protected static Random rnd(Code)



scheme
protected String scheme(Code)



serverName
protected String serverName(Code)



serverPort
protected int serverPort(Code)



servletConfig
protected ServletConfiguration servletConfig(Code)



servletPath
protected String servletPath(Code)



webappConfig
protected WebAppConfiguration webappConfig(Code)




Constructor Detail
WinstoneRequest
public WinstoneRequest() throws IOException(Code)
InputStream factory method.




Method Detail
addIncludeAttributes
public void addIncludeAttributes(String requestURI, String contextPath, String servletPath, String pathInfo, String queryString)(Code)



addIncludeQueryParameters
public void addIncludeQueryParameters(String queryString)(Code)



cleanUp
public void cleanUp()(Code)
Resets the request to be reused



clearIncludeStackForForward
public void clearIncludeStackForForward()(Code)



decodeURLToken
public static String decodeURLToken(String in)(Code)
For decoding the URL encoding used on query strings



discardRequestBody
public void discardRequestBody()(Code)



extractParameters
public static void extractParameters(String urlEncodedParams, String encoding, Map outputParams, boolean overwrite)(Code)
Gets parameters from the url encoded parameter string



getAttribute
public Object getAttribute(String name)(Code)



getAttributeNames
public Enumeration getAttributeNames()(Code)



getAttributes
public Map getAttributes()(Code)



getAttributesStack
public Stack getAttributesStack()(Code)



getAuthType
public String getAuthType()(Code)



getCharacterEncoding
public String getCharacterEncoding()(Code)



getContentLength
public int getContentLength()(Code)



getContentType
public String getContentType()(Code)



getContextPath
public String getContextPath()(Code)



getCookies
public Cookie[] getCookies()(Code)



getCurrentSessionIds
public Map getCurrentSessionIds()(Code)



getDateHeader
public long getDateHeader(String name)(Code)



getDeadRequestedSessionId
public String getDeadRequestedSessionId()(Code)



getEncoding
public String getEncoding()(Code)



getHeader
public String getHeader(String name)(Code)



getHeaderNames
public Enumeration getHeaderNames()(Code)



getHeaders
public Enumeration getHeaders(String name)(Code)



getHostGroup
public HostGroup getHostGroup()(Code)



getInputStream
public ServletInputStream getInputStream() throws IOException(Code)



getIntHeader
public int getIntHeader(String name)(Code)



getListLocales
public List getListLocales()(Code)



getLocalAddr
public String getLocalAddr()(Code)



getLocalName
public String getLocalName()(Code)



getLocalPort
public int getLocalPort()(Code)



getLocale
public Locale getLocale()(Code)



getLocales
public Enumeration getLocales()(Code)



getMethod
public String getMethod()(Code)



getParameter
public String getParameter(String name)(Code)



getParameterMap
public Map getParameterMap()(Code)



getParameterNames
public Enumeration getParameterNames()(Code)



getParameterValues
public String[] getParameterValues(String name)(Code)



getParameters
public Map getParameters()(Code)



getParametersStack
public Stack getParametersStack()(Code)



getParsedParameters
public Boolean getParsedParameters()(Code)



getPathInfo
public String getPathInfo()(Code)



getPathTranslated
public String getPathTranslated()(Code)



getProtocol
public String getProtocol()(Code)



getQueryString
public String getQueryString()(Code)



getReader
public BufferedReader getReader() throws IOException(Code)



getRealPath
public String getRealPath(String path)(Code)



getRemoteAddr
public String getRemoteAddr()(Code)



getRemoteHost
public String getRemoteHost()(Code)



getRemotePort
public int getRemotePort()(Code)



getRemoteUser
public String getRemoteUser()(Code)



getRequestDispatcher
public javax.servlet.RequestDispatcher getRequestDispatcher(String path)(Code)



getRequestURI
public String getRequestURI()(Code)



getRequestURL
public StringBuffer getRequestURL()(Code)



getRequestedSessionId
public String getRequestedSessionId()(Code)



getRequestedSessionIds
public Map getRequestedSessionIds()(Code)



getScheme
public String getScheme()(Code)



getServerName
public String getServerName()(Code)



getServerPort
public int getServerPort()(Code)



getServletConfig
public ServletConfiguration getServletConfig()(Code)



getServletPath
public String getServletPath()(Code)



getSession
public HttpSession getSession()(Code)



getSession
public HttpSession getSession(boolean create)(Code)



getUserPrincipal
public Principal getUserPrincipal()(Code)



getWebAppConfig
public WebAppConfiguration getWebAppConfig()(Code)



isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()(Code)



isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()(Code)



isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()(Code)



isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()(Code)



isSecure
public boolean isSecure()(Code)



isUserInRole
public boolean isUserInRole(String role)(Code)



markSessionsAsRequestFinished
public void markSessionsAsRequestFinished(long lastAccessedTime, boolean saveSessions)(Code)



parseHeaders
public void parseHeaders(List headerList)(Code)
Go through the list of headers, and build the headers/cookies arrays for the request object.



parseRequestParameters
public void parseRequestParameters()(Code)
This takes the parameters in the body of the request and puts them into the parameters map.



removeAttribute
public void removeAttribute(String name)(Code)



removeIncludeAttributes
public void removeIncludeAttributes()(Code)



removeIncludeQueryString
public void removeIncludeQueryString()(Code)



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



setAuthorization
public void setAuthorization(String auth)(Code)



setCharacterEncoding
public void setCharacterEncoding(String encoding) throws UnsupportedEncodingException(Code)



setContentLength
public void setContentLength(int len)(Code)



setContentType
public void setContentType(String type)(Code)



setCurrentSessionIds
public void setCurrentSessionIds(Map currentSessionIds)(Code)



setDeadRequestedSessionId
public void setDeadRequestedSessionId(String deadRequestedSessionId)(Code)



setEncoding
public void setEncoding(String encoding)(Code)



setForwardQueryString
public void setForwardQueryString(String forwardQueryString)(Code)



setHostGroup
public void setHostGroup(HostGroup hostGroup)(Code)



setInputStream
public void setInputStream(WinstoneInputStream inputData)(Code)



setIsSecure
public void setIsSecure(boolean isSecure)(Code)



setLocalAddr
public void setLocalAddr(String ip)(Code)



setLocalName
public void setLocalName(String name)(Code)



setLocalPort
public void setLocalPort(int port)(Code)



setLocales
public void setLocales(List locales)(Code)



setMethod
public void setMethod(String method)(Code)



setParsedParameters
public void setParsedParameters(Boolean parsed)(Code)



setPathInfo
public void setPathInfo(String pathInfo)(Code)



setProtocol
public void setProtocol(String protocolString)(Code)



setQueryString
public void setQueryString(String queryString)(Code)



setRemoteIP
public void setRemoteIP(String remoteIP)(Code)



setRemoteName
public void setRemoteName(String name)(Code)



setRemotePort
public void setRemotePort(int port)(Code)



setRemoteUser
public void setRemoteUser(AuthenticationPrincipal user)(Code)



setRequestAttributeListeners
public void setRequestAttributeListeners(ServletRequestAttributeListener ral)(Code)



setRequestListeners
public void setRequestListeners(ServletRequestListener rl)(Code)



setRequestURI
public void setRequestURI(String requestURI)(Code)



setRequestedSessionIds
public void setRequestedSessionIds(Map requestedSessionIds)(Code)



setScheme
public void setScheme(String scheme)(Code)



setServerName
public void setServerName(String name)(Code)



setServerPort
public void setServerPort(int port)(Code)



setServletConfig
public void setServletConfig(ServletConfiguration servletConfig)(Code)



setServletPath
public void setServletPath(String servletPath)(Code)



setWebAppConfig
public void setWebAppConfig(WebAppConfiguration webappConfig)(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.