Apache CXF API

org.apache.cxf.jaxws.context
Class WebServiceContextImpl

java.lang.Object
  extended by org.apache.cxf.jaxws.context.WebServiceContextImpl
All Implemented Interfaces:
WebServiceContext

public class WebServiceContextImpl
extends Object
implements WebServiceContext


Constructor Summary
WebServiceContextImpl()
           
WebServiceContextImpl(MessageContext c)
           
 
Method Summary
static void clear()
           
<T extends EndpointReference>
T
getEndpointReference(Class<T> clazz, Element... referenceParameters)
           
 EndpointReference getEndpointReference(Element... referenceParameters)
           
 MessageContext getMessageContext()
           
 Principal getUserPrincipal()
           
 boolean isUserInRole(String role)
           
static MessageContext setMessageContext(MessageContext ctx)
          Sets reference to the specified MessageContext and returns the previous reference, if any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceContextImpl

public WebServiceContextImpl()

WebServiceContextImpl

public WebServiceContextImpl(MessageContext c)
Method Detail

getMessageContext

public final MessageContext getMessageContext()
Specified by:
getMessageContext in interface WebServiceContext

getUserPrincipal

public final Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface WebServiceContext

isUserInRole

public final boolean isUserInRole(String role)
Specified by:
isUserInRole in interface WebServiceContext

getEndpointReference

public EndpointReference getEndpointReference(Element... referenceParameters)
Specified by:
getEndpointReference in interface WebServiceContext

getEndpointReference

public <T extends EndpointReference> T getEndpointReference(Class<T> clazz,
                                                            Element... referenceParameters)
Specified by:
getEndpointReference in interface WebServiceContext

setMessageContext

public static MessageContext setMessageContext(MessageContext ctx)
Sets reference to the specified MessageContext and returns the previous reference, if any.

Parameters:
ctx - The MessageContext to set
Returns:
The former MessageContext reference, if any.

clear

public static void clear()

Apache CXF API

Apache CXF