|
![]() |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.droplets.apix.servlet.DropletsHttpServletRequest
Implements HttpServletRequest for use in a Droplet calling a Servlet. Use it to call your Servlet's doGetService and doPostService. Be sure to use addParameter if the Servlet is expecting parameters. Many of the methods are marked as "Not implemented". This is because there is no Droplets alternative and probably depends on the specifics of the Servlet being used. It is expected that you subclass DropletsHttpServletRequest and provide an implementation that is appropriate for the Servlet you are trying to call. Most of the methods that are marked as "Not implemented" have a default implementation that may be appropriate, but are marked that way nonetheless to alert the developer to check to see if they need something else.
Copyright: Copyright (c) 2003
Company: Droplets
Constructor Summary | |
DropletsHttpServletRequest()
Construct objects of DropletsHttpServletRequest to pass to your Servlet's doGetService() and doPostService() |
Method Summary | |
void |
addParameter(java.lang.String name,
java.lang.String value)
Use this method to set parameters that the Servlet can get with getParameter. |
java.lang.Object |
getAttribute(java.lang.String name)
Gets an attribute previously set with setAttribute |
java.util.Enumeration |
getAttributeNames()
Not implemented. |
java.lang.String |
getAuthType()
Not implemented. |
java.lang.String |
getCharacterEncoding()
Not implemented. |
int |
getContentLength()
Not implemented. |
java.lang.String |
getContentType()
Not implemented. |
java.lang.String |
getContextPath()
Not implemented. |
javax.servlet.http.Cookie[] |
getCookies()
Not implemented. |
long |
getDateHeader(java.lang.String name)
Not implemented. |
java.lang.String |
getHeader(java.lang.String name)
Not implemented. |
java.util.Enumeration |
getHeaderNames()
Not implemented. |
java.util.Enumeration |
getHeaders(java.lang.String name)
Not implemented. |
javax.servlet.ServletInputStream |
getInputStream()
Not implemented. |
int |
getIntHeader(java.lang.String name)
Not implemented. |
java.util.Locale |
getLocale()
Not implemented. |
java.util.Enumeration |
getLocales()
Not implemented. |
java.lang.String |
getMethod()
Not implemented. |
java.lang.String |
getParameter(java.lang.String name)
Gets parameters set with addParameter. |
java.util.Map |
getParameterMap()
Returns the Map of parameters |
java.util.Enumeration |
getParameterNames()
Returns an Enumeration of Strings with the names of all parameters |
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns an array of the values of the parameter named 'name' |
java.lang.String |
getPathInfo()
Not implemented. |
java.lang.String |
getPathTranslated()
Not implemented. |
java.lang.String |
getProtocol()
Not implemented. |
java.lang.String |
getQueryString()
Not implemented. |
java.io.BufferedReader |
getReader()
Not implemented. |
java.lang.String |
getRealPath(java.lang.String path)
Not implemented. |
java.lang.String |
getRemoteAddr()
Not implemented. |
java.lang.String |
getRemoteHost()
Not implemented. |
java.lang.String |
getRemoteUser()
Not implemented. |
javax.servlet.RequestDispatcher |
getRequestDispatcher(java.lang.String path)
Returns a DropletsRequestDispatcher which ignores requests. |
java.lang.String |
getRequestedSessionId()
Not implemented. |
java.lang.String |
getRequestURI()
Not implemented. |
java.lang.StringBuffer |
getRequestURL()
Not implemented. |
java.lang.String |
getScheme()
Not implemented. |
java.lang.String |
getServerName()
Not implemented. |
int |
getServerPort()
Not implemented. |
java.lang.String |
getServletPath()
Not implemented. |
javax.servlet.http.HttpSession |
getSession()
Returns an object of class DropletsHttpSession. |
javax.servlet.http.HttpSession |
getSession(boolean create)
Returns an object of class DropletsHttpSession. |
java.security.Principal |
getUserPrincipal()
Not implemented. |
boolean |
isRequestedSessionIdFromCookie()
Not implemented. |
boolean |
isRequestedSessionIdFromUrl()
Not implemented. |
boolean |
isRequestedSessionIdFromURL()
Not implemented. |
boolean |
isRequestedSessionIdValid()
Not implemented. |
boolean |
isSecure()
Not implemented. |
boolean |
isUserInRole(java.lang.String role)
Not implemented. |
void |
removeAttribute(java.lang.String name)
Removes an attribute called 'name'. |
void |
removeParameter(java.lang.String name)
Use this method to remove parameters previously set with add parameter |
void |
setAttribute(java.lang.String name,
java.lang.Object o)
Sets an attribute called 'name' to 'o'. |
void |
setCharacterEncoding(java.lang.String env)
Not implemented. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DropletsHttpServletRequest()
Method Detail |
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface javax.servlet.ServletRequest
name
- an attribute namepublic java.util.Enumeration getAttributeNames()
getAttributeNames
in interface javax.servlet.ServletRequest
public java.lang.String getCharacterEncoding()
getCharacterEncoding
in interface javax.servlet.ServletRequest
public void setCharacterEncoding(java.lang.String env) throws java.io.UnsupportedEncodingException
env
- ignored. This method always throws UnsupportedEncodingException.public int getContentLength()
getContentLength
in interface javax.servlet.ServletRequest
public java.lang.String getContentType()
getContentType
in interface javax.servlet.ServletRequest
public javax.servlet.ServletInputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.servlet.ServletRequest
public void addParameter(java.lang.String name, java.lang.String value)
name
- the name of the parametervalue
- the value of the parameterpublic void removeParameter(java.lang.String name)
name
- the name of the parameterpublic java.lang.String getParameter(java.lang.String name)
getParameter
in interface javax.servlet.ServletRequest
the
- name of a parameterpublic java.util.Enumeration getParameterNames()
getParameterNames
in interface javax.servlet.ServletRequest
public java.lang.String[] getParameterValues(java.lang.String name)
getParameterValues
in interface javax.servlet.ServletRequest
name
- the name of the parameterpublic java.util.Map getParameterMap()
public java.lang.String getProtocol()
getProtocol
in interface javax.servlet.ServletRequest
public java.lang.String getScheme()
getScheme
in interface javax.servlet.ServletRequest
public java.lang.String getServerName()
getServerName
in interface javax.servlet.ServletRequest
public int getServerPort()
getServerPort
in interface javax.servlet.ServletRequest
public java.io.BufferedReader getReader() throws java.io.IOException
getReader
in interface javax.servlet.ServletRequest
public java.lang.String getRemoteAddr()
getRemoteAddr
in interface javax.servlet.ServletRequest
public java.lang.String getRemoteHost()
getRemoteHost
in interface javax.servlet.ServletRequest
public void setAttribute(java.lang.String name, java.lang.Object o)
setAttribute
in interface javax.servlet.ServletRequest
name
- the name of the attributeo
- the value of the attributepublic void removeAttribute(java.lang.String name)
removeAttribute
in interface javax.servlet.ServletRequest
name
- the name of the attributepublic java.util.Locale getLocale()
getLocale
in interface javax.servlet.ServletRequest
public java.util.Enumeration getLocales()
getLocales
in interface javax.servlet.ServletRequest
public boolean isSecure()
isSecure
in interface javax.servlet.ServletRequest
public javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String path)
getRequestDispatcher
in interface javax.servlet.ServletRequest
public java.lang.String getRealPath(java.lang.String path)
getRealPath
in interface javax.servlet.ServletRequest
public java.lang.String getAuthType()
getAuthType
in interface javax.servlet.http.HttpServletRequest
public javax.servlet.http.Cookie[] getCookies()
getCookies
in interface javax.servlet.http.HttpServletRequest
public long getDateHeader(java.lang.String name)
getDateHeader
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getHeader(java.lang.String name)
getHeader
in interface javax.servlet.http.HttpServletRequest
public java.util.Enumeration getHeaders(java.lang.String name)
getHeaders
in interface javax.servlet.http.HttpServletRequest
public java.util.Enumeration getHeaderNames()
getHeaderNames
in interface javax.servlet.http.HttpServletRequest
public int getIntHeader(java.lang.String name)
getIntHeader
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getMethod()
getMethod
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getPathInfo()
getPathInfo
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getPathTranslated()
getPathTranslated
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getContextPath()
getContextPath
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getQueryString()
getQueryString
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getRemoteUser()
getRemoteUser
in interface javax.servlet.http.HttpServletRequest
public boolean isUserInRole(java.lang.String role)
isUserInRole
in interface javax.servlet.http.HttpServletRequest
public java.security.Principal getUserPrincipal()
getUserPrincipal
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getRequestedSessionId()
getRequestedSessionId
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getRequestURI()
getRequestURI
in interface javax.servlet.http.HttpServletRequest
public java.lang.StringBuffer getRequestURL()
new StringBuffer("http://localhost/")
public java.lang.String getServletPath()
getServletPath
in interface javax.servlet.http.HttpServletRequest
public javax.servlet.http.HttpSession getSession(boolean create)
getSession
in interface javax.servlet.http.HttpServletRequest
public javax.servlet.http.HttpSession getSession()
getSession
in interface javax.servlet.http.HttpServletRequest
public boolean isRequestedSessionIdValid()
isRequestedSessionIdValid
in interface javax.servlet.http.HttpServletRequest
public boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie
in interface javax.servlet.http.HttpServletRequest
public boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL
in interface javax.servlet.http.HttpServletRequest
public boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl
in interface javax.servlet.http.HttpServletRequest
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |