org.apache.xmlrpc.webserver

Class HttpServletRequestImpl

Implemented Interfaces:
HttpServletRequest

public class HttpServletRequestImpl
extends java.lang.Object
implements HttpServletRequest

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?

Constructor Summary

HttpServletRequestImpl(Socket pSocket)
Creates a new instance, which reads input from the given socket.

Method Summary

protected void
addHeader(String pHeader, String pValue)
Object
getAttribute(String pKey)
Enumeration
getAttributeNames()
String
getAuthType()
String
getCharacterEncoding()
int
getContentLength()
String
getContentType()
String
getContextPath()
Cookie[]
getCookies()
long
getDateHeader(String arg0)
String
getHeader(String pHeader)
Enumeration
getHeaderNames()
Enumeration
getHeaders(String pHeader)
protected String
getHttpVersion()
ServletInputStream
getInputStream()
int
getIntHeader(String pHeader)
String
getLocalAddr()
String
getLocalName()
int
getLocalPort()
Locale
getLocale()
Enumeration
getLocales()
String
getMethod()
String
getParameter(String pName)
Map
getParameterMap()
Enumeration
getParameterNames()
String[]
getParameterValues(String pName)
String
getPathInfo()
String
getPathTranslated()
String
getProtocol()
String
getQueryString()
BufferedReader
getReader()
String
getRealPath(String pPath)
String
getRemoteAddr()
String
getRemoteHost()
int
getRemotePort()
String
getRemoteUser()
RequestDispatcher
getRequestDispatcher(String pUri)
String
getRequestURI()
StringBuffer
getRequestURL()
String
getRequestedSessionId()
String
getScheme()
String
getServerName()
int
getServerPort()
String
getServletPath()
HttpSession
getSession()
HttpSession
getSession(boolean pCreate)
Principal
getUserPrincipal()
boolean
isRequestedSessionIdFromCookie()
boolean
isRequestedSessionIdFromURL()
boolean
isRequestedSessionIdFromUrl()
boolean
isRequestedSessionIdValid()
boolean
isSecure()
boolean
isUserInRole(String pRole)
protected void
parseParameters()
protected String
readLine(byte[] pBuffer)
void
removeAttribute(String pKey)
void
setAttribute(String pKey, Object pValue)
void
setCharacterEncoding(String pEncoding)

Constructor Details

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.

Method Details

addHeader

protected void addHeader(String pHeader,
                         String pValue)

getAttribute

public Object getAttribute(String pKey)

getAttributeNames

public Enumeration getAttributeNames()

getAuthType

public String getAuthType()

getCharacterEncoding

public String getCharacterEncoding()

getContentLength

public int getContentLength()

getContentType

public String getContentType()

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)

getHttpVersion

protected String getHttpVersion()

getInputStream

public ServletInputStream getInputStream()
            throws IOException

getIntHeader

public int getIntHeader(String pHeader)

getLocalAddr

public String getLocalAddr()

getLocalName

public String getLocalName()

getLocalPort

public int getLocalPort()

getLocale

public Locale getLocale()

getLocales

public Enumeration getLocales()

getMethod

public String getMethod()

getParameter

public String getParameter(String pName)

getParameterMap

public Map getParameterMap()

getParameterNames

public Enumeration getParameterNames()

getParameterValues

public String[] getParameterValues(String pName)

getPathInfo

public String getPathInfo()

getPathTranslated

public String getPathTranslated()

getProtocol

public String getProtocol()

getQueryString

public String getQueryString()

getReader

public BufferedReader getReader()
            throws IOException

getRealPath

public String getRealPath(String pPath)

getRemoteAddr

public String getRemoteAddr()

getRemoteHost

public String getRemoteHost()

getRemotePort

public int getRemotePort()

getRemoteUser

public String getRemoteUser()

getRequestDispatcher

public RequestDispatcher getRequestDispatcher(String pUri)

getRequestURI

public String getRequestURI()

getRequestURL

public StringBuffer getRequestURL()

getRequestedSessionId

public String getRequestedSessionId()

getScheme

public String getScheme()

getServerName

public String getServerName()

getServerPort

public int getServerPort()

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()

isSecure

public boolean isSecure()

isUserInRole

public boolean isUserInRole(String pRole)

parseParameters

protected void parseParameters()

readLine

protected String readLine(byte[] pBuffer)
            throws IOException

removeAttribute

public void removeAttribute(String pKey)

setAttribute

public void setAttribute(String pKey,
                         Object pValue)

setCharacterEncoding

public void setCharacterEncoding(String pEncoding)

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.