org.apache.xmlrpc.webserver
public class HttpServletRequestImpl extends Object
javax.servlet.http.HttpServletRequest
with lots of unimplemented methods. I implemented only those, which
are required for testing the XmlRpcServlet
.
Perhaps someone else is adding more at a later time?Constructor and Description |
---|
HttpServletRequestImpl(Socket pSocket)
Creates a new instance, which reads input from the given
socket.
|
public HttpServletRequestImpl(Socket pSocket) throws IOException
pSocket
- The socket, to which the client is connected.IOException
- Accessing the sockets input stream failed.public void readHttpHeaders() throws IOException, ServletWebServer.Exception
protected String readLine(byte[] pBuffer) throws IOException
IOException
public String getAuthType()
public String getContextPath()
public Cookie[] getCookies()
public long getDateHeader(String arg0)
public Enumeration getHeaderNames()
public Enumeration getHeaders(String pHeader)
public int getIntHeader(String pHeader)
public String getMethod()
public String getPathInfo()
public String getPathTranslated()
public String getQueryString()
public String getRemoteUser()
public String getRequestURI()
public StringBuffer getRequestURL()
public String getRequestedSessionId()
public String getServletPath()
public HttpSession getSession()
public HttpSession getSession(boolean pCreate)
public Principal getUserPrincipal()
public boolean isRequestedSessionIdFromCookie()
public boolean isRequestedSessionIdFromURL()
public boolean isRequestedSessionIdFromUrl()
public boolean isRequestedSessionIdValid()
public boolean isUserInRole(String pRole)
public Enumeration getAttributeNames()
public String getCharacterEncoding()
public void setCharacterEncoding(String pEncoding)
public int getContentLength()
public String getContentType()
public ServletInputStream getInputStream() throws IOException
IOException
public Locale getLocale()
public Enumeration getLocales()
protected void parseParameters()
public Map getParameterMap()
public Enumeration getParameterNames()
public String getProtocol()
public BufferedReader getReader() throws IOException
IOException
public String getLocalAddr()
public String getLocalName()
public int getLocalPort()
public String getRemoteAddr()
public String getRemoteHost()
public int getRemotePort()
public RequestDispatcher getRequestDispatcher(String pUri)
public String getScheme()
public String getServerName()
public int getServerPort()
public boolean isSecure()
public void removeAttribute(String pKey)
protected String getHttpVersion()
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.