|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.ws.jaxws.http.servlet.ServletRequestAdapter
public class ServletRequestAdapter
Wraps an HttpServletRequest
.
Constructor Summary | |
---|---|
ServletRequestAdapter(HttpServletRequest request)
Construct a new IWSRequest from an HttpServletRequest . |
Method Summary | ||
---|---|---|
|
getAttribute(Class<T> type)
Returns an object of the corresponding interface, or null if none was found |
|
String |
getContentType()
|
|
String |
getHeader(String name)
|
|
InputStream |
getInputStream()
|
|
String |
getParameter(String parameter)
|
|
String |
getRemoteAddr()
|
|
StringBuffer |
getRequestURL()
|
|
|
setAttribute(Class<T> type,
T value)
Permits to use the IWSRequest interface as a storage place. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletRequestAdapter(HttpServletRequest request)
IWSRequest
from an HttpServletRequest
.
request
- wrapped requestMethod Detail |
---|
public <T> T getAttribute(Class<T> type)
IWSRequest
getAttribute
in interface IWSRequest
T
- interface of the objecttype
- expected interface type used as a key
public String getContentType()
getContentType
in interface IWSRequest
public InputStream getInputStream() throws IOException
getInputStream
in interface IWSRequest
InputStream
with the web service request
message's content.
IOException
- when InputStream
cannot be returned.public String getRemoteAddr()
getRemoteAddr
in interface IWSRequest
public String getHeader(String name)
getHeader
in interface IWSRequest
public String getParameter(String parameter)
public <T> T setAttribute(Class<T> type, T value)
IWSRequest
IWSRequest
interface as a storage place.
setAttribute
in interface IWSRequest
T
- interface of the objecttype
- keyvalue
- the object to be stored
public StringBuffer getRequestURL()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |