|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 request| Method Detail |
|---|
public <T> T getAttribute(Class<T> type)
IWSRequest
getAttribute in interface IWSRequestT - 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 IWSRequestInputStream with the web service request
message's content.
IOException - when InputStream cannot be returned.public String getRemoteAddr()
getRemoteAddr in interface IWSRequestpublic String getHeader(String name)
getHeader in interface IWSRequestpublic String getParameter(String parameter)
public <T> T setAttribute(Class<T> type,
T value)
IWSRequestIWSRequest interface as a storage place.
setAttribute in interface IWSRequestT - 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 | |||||||||