public class WebServiceContextImpl extends Object implements WebServiceContext
Constructor and Description |
---|
WebServiceContextImpl() |
WebServiceContextImpl(MessageContext c) |
Modifier and Type | Method and Description |
---|---|
static void |
clear() |
<T extends EndpointReference> |
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.
|
public WebServiceContextImpl()
public WebServiceContextImpl(MessageContext c)
public final MessageContext getMessageContext()
getMessageContext
in interface WebServiceContext
public final Principal getUserPrincipal()
getUserPrincipal
in interface WebServiceContext
public final boolean isUserInRole(String role)
isUserInRole
in interface WebServiceContext
public EndpointReference getEndpointReference(Element... referenceParameters)
getEndpointReference
in interface WebServiceContext
public <T extends EndpointReference> T getEndpointReference(Class<T> clazz, Element... referenceParameters)
getEndpointReference
in interface WebServiceContext
public static MessageContext setMessageContext(MessageContext ctx)
ctx
- The MessageContext to setpublic static void clear()
Apache CXF