org.apache.xmlrpc.webserver
Class HttpServletRequestImpl
java.lang.Object
org.apache.xmlrpc.webserver.HttpServletRequestImpl
public class HttpServletRequestImpl
- extends Object
Stub implementation of a 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?
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpServletRequestImpl
public HttpServletRequestImpl(Socket pSocket)
throws IOException
- Creates a new instance, which reads input from the given
socket.
- Parameters:
pSocket
- The socket, to which the client is connected.
- Throws:
IOException
- Accessing the sockets input stream failed.
readHttpHeaders
public void readHttpHeaders()
throws IOException,
ServletWebServer.Exception
- Read the header lines, one by one. Note, that the size of
the buffer is a limitation of the maximum header length!
- Throws:
IOException
ServletWebServer.Exception
readLine
protected String readLine(byte[] pBuffer)
throws IOException
- Throws:
IOException
addHeader
protected void addHeader(String pHeader,
String pValue)
getAuthType
public String getAuthType()
getContextPath
public String getContextPath()
getCookies
public Cookie[] getCookies()
getDateHeader
public long getDateHeader(String arg0)
getHeader
public String getHeader(String pHeader)
getHeaderNames
public Enumeration getHeaderNames()
getHeaders
public Enumeration getHeaders(String pHeader)
getIntHeader
public int getIntHeader(String pHeader)
getMethod
public String getMethod()
getPathInfo
public String getPathInfo()
getPathTranslated
public String getPathTranslated()
getQueryString
public String getQueryString()
getRemoteUser
public String getRemoteUser()
getRequestURI
public String getRequestURI()
getRequestURL
public StringBuffer getRequestURL()
getRequestedSessionId
public String getRequestedSessionId()
getServletPath
public String getServletPath()
getSession
public HttpSession getSession()
getSession
public HttpSession getSession(boolean pCreate)
getUserPrincipal
public Principal getUserPrincipal()
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()
isUserInRole
public boolean isUserInRole(String pRole)
getAttribute
public Object getAttribute(String pKey)
getAttributeNames
public Enumeration getAttributeNames()
getCharacterEncoding
public String getCharacterEncoding()
setCharacterEncoding
public void setCharacterEncoding(String pEncoding)
getContentLength
public int getContentLength()
getContentType
public String getContentType()
getInputStream
public ServletInputStream getInputStream()
throws IOException
- Throws:
IOException
getLocale
public Locale getLocale()
getLocales
public Enumeration getLocales()
parseParameters
protected void parseParameters()
getParameter
public String getParameter(String pName)
getParameterMap
public Map getParameterMap()
getParameterNames
public Enumeration getParameterNames()
getParameterValues
public String[] getParameterValues(String pName)
getProtocol
public String getProtocol()
getReader
public BufferedReader getReader()
throws IOException
- Throws:
IOException
getRealPath
public String getRealPath(String pPath)
getLocalAddr
public String getLocalAddr()
getLocalName
public String getLocalName()
getLocalPort
public int getLocalPort()
getRemoteAddr
public String getRemoteAddr()
getRemoteHost
public String getRemoteHost()
getRemotePort
public int getRemotePort()
getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String pUri)
getScheme
public String getScheme()
getServerName
public String getServerName()
getServerPort
public int getServerPort()
isSecure
public boolean isSecure()
removeAttribute
public void removeAttribute(String pKey)
setAttribute
public void setAttribute(String pKey,
Object pValue)
getHttpVersion
protected String getHttpVersion()
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.