Methods Summary |
---|
public javax.xml.ws.EndpointReference | getEndpointReference(java.lang.Class clazz, org.w3c.dom.Element params)
return this.jaxwsContextDelegate.getEndpointReference(clazz, params);
|
public javax.xml.ws.EndpointReference | getEndpointReference(org.w3c.dom.Element params)
return this.jaxwsContextDelegate.getEndpointReference(params);
|
public javax.xml.ws.handler.MessageContext | getMessageContext()
return this.jaxwsContextDelegate.getMessageContext();
|
public com.sun.xml.ws.api.message.Packet | getRequestPacket()
return this.jaxwsContextDelegate.getRequestPacket();
|
public java.security.Principal | getUserPrincipal()
// This could be an EJB endpoint; check the threadlocal variable
WebPrincipal p = (WebPrincipal) principal.get();
if (p != null) {
return p;
}
// This is a servlet endpoint
return this.jaxwsContextDelegate.getUserPrincipal();
|
public boolean | isUserInRole(java.lang.String role)
Switch sw = Switch.getSwitch();
InvocationManager mgr = sw.getInvocationManager();
Object o = mgr.getCurrentInvocation().getContainerContext();
if(o instanceof StatelessSessionContainer) {
StatelessSessionContainer cont = (StatelessSessionContainer) o;
boolean res = cont.getSecurityManager().isCallerInRole(role);
return res;
}
// This is a servlet endpoint
return this.jaxwsContextDelegate.isUserInRole(role);
|
public void | setContextDelegate(com.sun.xml.ws.api.server.WSWebServiceContext wsc)
this.jaxwsContextDelegate = wsc;
|
public void | setMessageContext(javax.xml.ws.handler.MessageContext ctxt)
msgContext.set(ctxt);
|
public void | setUserPrincipal(com.sun.web.security.WebPrincipal p)
principal.set(p);
|