|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aselect.system.communication.server.ServletRequestWrapper
public class ServletRequestWrapper
Wrapper to communicate in a transparant manner to a
HttpServletRequest
.
Description:
This class is a Wrapper for the HttpServletRequest
which implements IProtocolRequest
.
Note: Wrapper is commonly used Design pattern also known as adapter.
Concurrency issues:
-
Constructor Summary | |
---|---|
ServletRequestWrapper(javax.servlet.http.HttpServletRequest oRequest)
Create a new instance. |
Method Summary | |
---|---|
java.io.InputStream |
getInputStream()
Get the input stream of the request protocol. |
java.lang.String |
getMessage()
Returns an String which contains the request its data. |
java.lang.String |
getProperty(java.lang.String name)
Retrieve a property of the request protocol. |
java.lang.String |
getProtocolName()
Retrieve the name of the protocol that is wrapped by this wrapper. |
java.lang.String |
getTarget()
Retrieve the full servlet address. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletRequestWrapper(javax.servlet.http.HttpServletRequest oRequest)
oRequest
.
oRequest
should be created by a servlet container.
oRequest
.
oRequest
- The HttpServletRequest
that this wrapper wraps.Method Detail |
---|
public java.io.InputStream getInputStream() throws java.io.IOException
String
.
getInputStream
in interface IProtocolRequest
InputStream
from which the incomming message can
be retrieved.
java.io.IOException
- if InputStream
can't be retrieved from the protocol.IProtocolRequest.getInputStream()
public java.lang.String getProperty(java.lang.String name)
getProperty
in interface IProtocolRequest
name
- The property name.
IProtocolRequest.getProperty(java.lang.String)
public java.lang.String getProtocolName()
getProtocolName
in interface IProtocolRequest
IProtocolRequest.getProtocolName()
public java.lang.String getTarget()
getTarget
in interface IProtocolRequest
IProtocolRequest.getTarget()
public java.lang.String getMessage()
IProtocolRequest
String
which contains the request its data.
getMessage
in interface IProtocolRequest
IProtocolRequest.getMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |