org.jboss.injection
Class WebServiceContextProxy

java.lang.Object
  extended by org.jboss.injection.WebServiceContextProxy
All Implemented Interfaces:
javax.xml.ws.WebServiceContext

public class WebServiceContextProxy
extends Object
implements javax.xml.ws.WebServiceContext

WebServiceContext proxy that delegates to a ThreadLocal.

Author:
Heiko.Braun
See Also:
StatelessContainer

Constructor Summary
WebServiceContextProxy()
           
 
Method Summary
static void associateMessageContext(javax.xml.ws.WebServiceContext messageContext)
           
<T extends javax.xml.ws.EndpointReference>
T
getEndpointReference(Class<T> aClass, Element... elements)
           
 javax.xml.ws.EndpointReference getEndpointReference(Element... elements)
           
 javax.xml.ws.handler.MessageContext getMessageContext()
           
 Principal getUserPrincipal()
           
 boolean isUserInRole(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceContextProxy

public WebServiceContextProxy()
Method Detail

associateMessageContext

public static void associateMessageContext(javax.xml.ws.WebServiceContext messageContext)

getMessageContext

public javax.xml.ws.handler.MessageContext getMessageContext()
Specified by:
getMessageContext in interface javax.xml.ws.WebServiceContext

getUserPrincipal

public Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface javax.xml.ws.WebServiceContext

isUserInRole

public boolean isUserInRole(String string)
Specified by:
isUserInRole in interface javax.xml.ws.WebServiceContext

getEndpointReference

public javax.xml.ws.EndpointReference getEndpointReference(Element... elements)
Specified by:
getEndpointReference in interface javax.xml.ws.WebServiceContext

getEndpointReference

public <T extends javax.xml.ws.EndpointReference> T getEndpointReference(Class<T> aClass,
                                                                         Element... elements)
Specified by:
getEndpointReference in interface javax.xml.ws.WebServiceContext


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.