Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » environment » commandline » [javadoc | source]
org.apache.cocoon.environment.commandline
public class: CommandLineRequest [javadoc | source]
java.lang.Object
   org.apache.cocoon.environment.commandline.CommandLineRequest

All Implemented Interfaces:
    Request

Creates a specific servlet request simulation from command line usage.
Constructor:
 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 from org.apache.cocoon.environment.commandline.CommandLineRequest Summary:
get,   getAttribute,   getAttributeNames,   getAuthType,   getCharacterEncoding,   getContentLength,   getContentType,   getContextPath,   getCookieMap,   getCookies,   getDateHeader,   getHeader,   getHeaderNames,   getHeaders,   getIntHeader,   getLocale,   getLocales,   getMethod,   getParameter,   getParameterMap,   getParameterNames,   getParameterValues,   getPathInfo,   getPathTranslated,   getProtocol,   getQueryString,   getRemoteAddr,   getRemoteHost,   getRemoteUser,   getRequestURI,   getRequestURL,   getRequestedSessionId,   getScheme,   getServerName,   getServerPort,   getServletPath,   getSession,   getSession,   getSitemapURI,   getSitemapURIPrefix,   getUserPrincipal,   isRequestedSessionIdFromCookie,   isRequestedSessionIdFromURL,   isRequestedSessionIdValid,   isSecure,   isUserInRole,   removeAttribute,   setAttribute,   setCharacterEncoding
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.environment.commandline.CommandLineRequest Detail:
 public Object get(String name) 
 public Object getAttribute(String name) 
 public Enumeration getAttributeNames() 
 public String getAuthType() 
 public String getCharacterEncoding() 
 public int getContentLength() 
 public String getContentType() 
 public String getContextPath() 
 public Map getCookieMap() 
 public Cookie[] getCookies() 
 public long getDateHeader(String name) 
 public String getHeader(String name) 
 public Enumeration getHeaderNames() 
 public Enumeration getHeaders(String name) 
 public int getIntHeader(String name) 
 public Locale getLocale() 
 public Enumeration getLocales() 
 public String getMethod() 
 public String getParameter(String name) 
 public Map getParameterMap() 
 public Enumeration getParameterNames() 
 public String[] getParameterValues(String name) 
 public String getPathInfo() 
 public String getPathTranslated() 
 public String getProtocol() 
 public String getQueryString() 
 public String getRemoteAddr() 
 public String getRemoteHost() 
 public String getRemoteUser() 
 public String getRequestURI() 
 public StringBuffer getRequestURL() 
 public String getRequestedSessionId() 
    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.
 public String getScheme() 
 public String getServerName() 
 public int getServerPort() 
 public String getServletPath() 
 public Session getSession() 
    Returns the current session associated with this request, or if the request does not have a session, creates one.
 public Session getSession(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.

    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.

 public String getSitemapURI() 
 public String getSitemapURIPrefix() 
 public Principal getUserPrincipal() 
 public boolean isRequestedSessionIdFromCookie() 
    Checks whether the requested session ID came in as a cookie.
 public boolean isRequestedSessionIdFromURL() 
    Checks whether the requested session ID came in as part of the request URL.
 public boolean isRequestedSessionIdValid() 
    Checks whether the requested session ID is still valid.
 public boolean isSecure() 
 public boolean isUserInRole(String role) 
 public  void removeAttribute(String name) 
 public  void setAttribute(String name,
    Object value) 
 public  void setCharacterEncoding(String env) throws UnsupportedEncodingException