|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.ucsb.adl.middleware.rmi.RmiRequest
Stores client and access control information during an RMI method invocation. Currently, only the client's IP address is stored.
$Log: RmiRequest.java,v $
Revision 1.4 2006/06/24 05:33:30 gjanee
Yet more upgrades to maintain compatibility with the servlet
API.
Revision 1.3 2004/03/11 20:21:27 gjanee
Minor upgrade to servlet API 2.4.
Revision 1.2 2002/09/26 04:21:47 gjanee
Minor upgrade to servlet API 2.3.
Revision 1.1 2001/02/20 20:07:09 gjanee
Initial revision
| Constructor Summary | |
RmiRequest(java.rmi.server.RemoteServer server)
Creates an RmiRequest. |
|
| Method Summary | |
java.lang.Object |
getAttribute(java.lang.String name)
Returns null. |
java.util.Enumeration |
getAttributeNames()
Returns an empty Enumeration. |
java.lang.String |
getCharacterEncoding()
Returns null. |
int |
getContentLength()
Returns -1. |
java.lang.String |
getContentType()
Returns null. |
javax.servlet.ServletInputStream |
getInputStream()
Throws an IllegalStateException. |
java.lang.String |
getLocalAddr()
Returns the local IP address. |
java.util.Locale |
getLocale()
Returns the default locale. |
java.util.Enumeration |
getLocales()
Returns an Enumeration containing just the default
locale. |
java.lang.String |
getLocalName()
Returns the local hostname. |
int |
getLocalPort()
Returns -1. |
java.lang.String |
getParameter(java.lang.String name)
Returns null. |
java.util.Map |
getParameterMap()
Returns an empty Hashtable. |
java.util.Enumeration |
getParameterNames()
Returns an empty Enumeration. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns null. |
java.lang.String |
getProtocol()
Returns " RMI". |
java.io.BufferedReader |
getReader()
Throws an IllegalStateException. |
java.lang.String |
getRealPath(java.lang.String path)
Deprecated. Talk about being between a rock and a hard place... the compiler complains that this method is deprecated, but it won't treat this class as concrete unless an implementation is provided. |
java.lang.String |
getRemoteAddr()
Returns the client's IP address in dotted numeric notation. |
java.lang.String |
getRemoteHost()
Returns the client's hostname. |
int |
getRemotePort()
Returns -1. |
javax.servlet.RequestDispatcher |
getRequestDispatcher(java.lang.String path)
Returns null. |
java.lang.String |
getScheme()
Returns " rmi". |
java.lang.String |
getServerName()
Returns the local hostname. |
int |
getServerPort()
Returns the standard RMI port number, 1099. |
boolean |
isSecure()
Returns false. |
void |
removeAttribute(java.lang.String name)
Does nothing. |
void |
setAttribute(java.lang.String name,
java.lang.Object o)
Does nothing. |
void |
setCharacterEncoding(java.lang.String encoding)
Does nothing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RmiRequest(java.rmi.server.RemoteServer server)
throws java.rmi.RemoteException
RmiRequest.
server - The RMI server being invoked.
java.rmi.RemoteException - If server is not actively being invoked.| Method Detail |
public java.lang.Object getAttribute(java.lang.String name)
null.
getAttribute in interface javax.servlet.ServletRequestname - Unused.
null.public java.util.Enumeration getAttributeNames()
Enumeration.
getAttributeNames in interface javax.servlet.ServletRequestEnumeration.public java.lang.String getCharacterEncoding()
null.
getCharacterEncoding in interface javax.servlet.ServletRequestnull.public int getContentLength()
getContentLength in interface javax.servlet.ServletRequestpublic java.lang.String getContentType()
null.
getContentType in interface javax.servlet.ServletRequestnull.public javax.servlet.ServletInputStream getInputStream()
IllegalStateException.
getInputStream in interface javax.servlet.ServletRequestjava.lang.IllegalStateException - Always.public java.lang.String getParameter(java.lang.String name)
null.
getParameter in interface javax.servlet.ServletRequestname - Unused.
null.public java.util.Enumeration getParameterNames()
Enumeration.
getParameterNames in interface javax.servlet.ServletRequestEnumeration.public java.lang.String[] getParameterValues(java.lang.String name)
null.
getParameterValues in interface javax.servlet.ServletRequestname - Unused.
null.public java.lang.String getProtocol()
RMI".
getProtocol in interface javax.servlet.ServletRequestRMI".public java.lang.String getScheme()
rmi".
getScheme in interface javax.servlet.ServletRequestrmi".public java.lang.String getServerName()
getServerName in interface javax.servlet.ServletRequestpublic int getServerPort()
getServerPort in interface javax.servlet.ServletRequestpublic java.io.BufferedReader getReader()
IllegalStateException.
getReader in interface javax.servlet.ServletRequestjava.lang.IllegalStateException - Always.public java.lang.String getRemoteAddr()
getRemoteAddr in interface javax.servlet.ServletRequestpublic 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.ServletRequestname - Unused.o - Unused.public void removeAttribute(java.lang.String name)
removeAttribute in interface javax.servlet.ServletRequestname - Unused.public java.util.Locale getLocale()
getLocale in interface javax.servlet.ServletRequestpublic java.util.Enumeration getLocales()
Enumeration containing just the default
locale.
getLocales in interface javax.servlet.ServletRequestEnumeration.public boolean isSecure()
false.
isSecure in interface javax.servlet.ServletRequestfalse.public javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String path)
null.
getRequestDispatcher in interface javax.servlet.ServletRequestpath - Unused.
null.public java.lang.String getRealPath(java.lang.String path)
null.
getRealPath in interface javax.servlet.ServletRequestpath - Unused.
null.public void setCharacterEncoding(java.lang.String encoding)
setCharacterEncoding in interface javax.servlet.ServletRequestencoding - Unused.public java.util.Map getParameterMap()
Hashtable.
getParameterMap in interface javax.servlet.ServletRequestHashtable.public int getLocalPort()
getLocalPort in interface javax.servlet.ServletRequestpublic java.lang.String getLocalAddr()
getLocalAddr in interface javax.servlet.ServletRequestpublic java.lang.String getLocalName()
getLocalName in interface javax.servlet.ServletRequestpublic int getRemotePort()
getRemotePort in interface javax.servlet.ServletRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||