| 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) |
getCharacterEncoding | public String getCharacterEncoding()(Code) | | |
getContentLength | public int getContentLength()(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() |
getServerPort | public int getServerPort()(Code) | | |
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 false and the request has no valid session See Also: CommandLineRequest.getSession() |
getSitemapURIPrefix | public String getSitemapURIPrefix()(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() |
isSecure | public boolean isSecure()(Code) | | |
removeAttribute | public void removeAttribute(String name)(Code) | | |
|
|