org.ow2.jonas.ws.jaxws
Interface IWSRequest

All Known Implementing Classes:
ServletRequestAdapter

public interface IWSRequest

An IWSRequest represents a request to an IWebServiceEndpoint.

Author:
Guillaume Sauthier

Method Summary
<T> T
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 getRemoteAddr()
           
<T> T
setAttribute(Class<T> type, T value)
          Permits to use the IWSRequest interface as a storage place.
 

Method Detail

getInputStream

InputStream getInputStream()
                           throws IOException
Returns:
the InputStream with the web service request message's content.
Throws:
IOException - when InputStream cannot be returned.

getRemoteAddr

String getRemoteAddr()

getHeader

String getHeader(String name)

getContentType

String getContentType()
Returns:
the MIME Content-Type header.

setAttribute

<T> T setAttribute(Class<T> type,
                   T value)
Permits to use the IWSRequest interface as a storage place.

Type Parameters:
T - interface of the object
Parameters:
type - key
value - the object to be stored
Returns:
the old value if any was set before, or null.

getAttribute

<T> T getAttribute(Class<T> type)
Returns an object of the corresponding interface, or null if none was found

Type Parameters:
T - interface of the object
Parameters:
type - expected interface type used as a key
Returns:
an object of the corresponding interface, or null if none was found


Copyright © 2010 OW2 Consortium. All Rights Reserved.