Java Doc for CommandLineRequest.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » environment » commandline » 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 » Content Management System » apache lenya 2.0 » org.apache.cocoon.environment.commandline 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.cocoon.environment.commandline.CommandLineRequest

CommandLineRequest
public class CommandLineRequest implements Request(Code)
Creates a specific servlet request simulation from command line usage.
author:
   Stefano Mazzocchi
author:
   Carsten Ziegeler
version:
   $Id: CommandLineRequest.java 433543 2006-08-22 06:22:54Z crossley $



Constructor Summary
public  CommandLineRequest(Environment env, String contextPath, String servletPath, String pathInfo)
    
public  CommandLineRequest(Environment env, String contextPath, String servletPath, String pathInfo, Map attributes)
    
public  CommandLineRequest(Environment env, String contextPath, String servletPath, String pathInfo, Map attributes, Map parameters)
    
public  CommandLineRequest(Environment env, String contextPath, String servletPath, String pathInfo, Map attributes, Map parameters, Map headers)
    

Method Summary
public  Objectget(String name)
    
public  ObjectgetAttribute(String name)
    
public  EnumerationgetAttributeNames()
    
public  StringgetAuthType()
    
public  StringgetCharacterEncoding()
    
public  intgetContentLength()
    
public  StringgetContentType()
    
public  StringgetContextPath()
    
public  MapgetCookieMap()
    
public  Cookie[]getCookies()
    
public  longgetDateHeader(String name)
    
public  StringgetHeader(String name)
    
public  EnumerationgetHeaderNames()
    
public  EnumerationgetHeaders(String name)
    
public  intgetIntHeader(String name)
    
public  LocalegetLocale()
    
public  EnumerationgetLocales()
    
public  StringgetMethod()
    
public  StringgetParameter(String name)
    
public  java.util.MapgetParameterMap()
    
public  EnumerationgetParameterNames()
    
public  String[]getParameterValues(String name)
    
public  StringgetPathInfo()
    
public  StringgetPathTranslated()
    
public  StringgetProtocol()
    
public  StringgetQueryString()
    
public  StringgetRemoteAddr()
    
public  StringgetRemoteHost()
    
public  StringgetRemoteUser()
    
public  StringgetRequestURI()
    
public  StringBuffergetRequestURL()
    
public  StringgetRequestedSessionId()
     Returns the session ID specified by the client.
public  StringgetScheme()
    
public  StringgetServerName()
    
public  intgetServerPort()
    
public  StringgetServletPath()
    
public  SessiongetSession()
     Returns the current session associated with this request, or if the request does not have a session, creates one.
public  SessiongetSession(boolean create)
     Returns the current Session associated with this request or, if if there is no current session and create is true, returns a new session.
public  StringgetSitemapURI()
    
public  StringgetSitemapURIPrefix()
    
public  java.security.PrincipalgetUserPrincipal()
    
public  booleanisRequestedSessionIdFromCookie()
     Checks whether the requested session ID came in as a cookie.
public  booleanisRequestedSessionIdFromURL()
     Checks whether the requested session ID came in as part of the request URL.
public  booleanisRequestedSessionIdValid()
     Checks whether the requested session ID is still valid.
public  booleanisSecure()
    
public  booleanisUserInRole(String role)
    
public  voidremoveAttribute(String name)
    
public  voidsetAttribute(String name, Object value)
    
public  voidsetCharacterEncoding(java.lang.String env)
    


Constructor Detail
CommandLineRequest
public CommandLineRequest(Environment env, String contextPath, String servletPath, String pathInfo)(Code)



CommandLineRequest
public CommandLineRequest(Environment env, String contextPath, String servletPath, String pathInfo, Map attributes)(Code)



CommandLineRequest
public CommandLineRequest(Environment env, String contextPath, String servletPath, String pathInfo, Map attributes, Map parameters)(Code)



CommandLineRequest
public CommandLineRequest(Environment env, String contextPath, String servletPath, String pathInfo, Map attributes, Map parameters, Map headers)(Code)




Method Detail
get
public Object get(String name)(Code)



getAttribute
public Object getAttribute(String name)(Code)



getAttributeNames
public Enumeration getAttributeNames()(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)



getCookieMap
public Map getCookieMap()(Code)



getCookies
public Cookie[] getCookies()(Code)



getDateHeader
public long getDateHeader(String name)(Code)



getHeader
public String getHeader(String name)(Code)



getHeaderNames
public Enumeration getHeaderNames()(Code)



getHeaders
public Enumeration getHeaders(String name)(Code)



getIntHeader
public int getIntHeader(String name)(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 java.util.Map getParameterMap()(Code)



getParameterNames
public Enumeration getParameterNames()(Code)



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



getPathInfo
public String getPathInfo()(Code)



getPathTranslated
public String getPathTranslated()(Code)



getProtocol
public String getProtocol()(Code)



getQueryString
public String getQueryString()(Code)



getRemoteAddr
public String getRemoteAddr()(Code)



getRemoteHost
public String getRemoteHost()(Code)



getRemoteUser
public String getRemoteUser()(Code)



getRequestURI
public String getRequestURI()(Code)



getRequestURL
public StringBuffer getRequestURL()(Code)



getRequestedSessionId
public String getRequestedSessionId()(Code)
Returns the session ID specified by the client. This may not be the same as the ID of the actual session in use. For example, if the request specified an old (expired) session ID and the server has started a new session, this method gets a new session with a new ID. If the request did not specify a session ID, this method returns null. a String specifying the sessionID, or null if the request didnot specify a session ID
See Also:   CommandLineRequest.isRequestedSessionIdValid()



getScheme
public String getScheme()(Code)



getServerName
public String getServerName()(Code)



getServerPort
public int getServerPort()(Code)



getServletPath
public String getServletPath()(Code)



getSession
public Session getSession()(Code)
Returns the current session associated with this request, or if the request does not have a session, creates one. the Session associatedwith this request
See Also:   CommandLineRequest.getSession(boolean)



getSession
public Session getSession(boolean create)(Code)
Returns the current Session associated with this request or, if if there is no current session and create is true, returns a new session.

If create is false and the request has no valid Session, this method returns null.

To make sure the session is properly maintained, you must call this method before the response is committed.
Parameters:
  create - true to create a new session for this requestif necessary;false to return null if there'sno current session the Session associated with this request ornull if create is falseand the request has no valid session
See Also:   CommandLineRequest.getSession()




getSitemapURI
public String getSitemapURI()(Code)



getSitemapURIPrefix
public String getSitemapURIPrefix()(Code)



getUserPrincipal
public java.security.Principal getUserPrincipal()(Code)



isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()(Code)
Checks whether the requested session ID came in as a cookie. true if the session IDcame in as acookie; otherwise, false
See Also:   CommandLineRequest.getSession()



isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()(Code)
Checks whether the requested session ID came in as part of the request URL. true if the session IDcame in as part of a URL; otherwise,false
See Also:   CommandLineRequest.getSession()



isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()(Code)
Checks whether the requested session ID is still valid. true if thisrequest has an id for a valid sessionin the current session context;false otherwise
See Also:   CommandLineRequest.getRequestedSessionId()
See Also:   CommandLineRequest.getSession()



isSecure
public boolean isSecure()(Code)



isUserInRole
public boolean isUserInRole(String role)(Code)



removeAttribute
public void removeAttribute(String name)(Code)



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



setCharacterEncoding
public void setCharacterEncoding(java.lang.String env) 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.