org.apache.axis2.jaxws.description.builder
Class WebServiceContextAnnot

java.lang.Object
  extended by org.apache.axis2.jaxws.description.builder.WebServiceContextAnnot
All Implemented Interfaces:
WebServiceContext

public class WebServiceContextAnnot
extends java.lang.Object
implements WebServiceContext


Method Summary
 java.lang.Class<java.lang.annotation.Annotation> annotationType()
           
<T extends EndpointReference>
T
getEndpointReference(java.lang.Class<T> arg0, org.w3c.dom.Element... arg1)
           
 EndpointReference getEndpointReference(org.w3c.dom.Element... arg0)
           
 MessageContext getMessageContext()
           
 java.security.Principal getUserPrincipal()
           
 boolean isUserInRole(java.lang.String role)
           
 void setMessageContext(MessageContext messageContext)
           
 void setUserInRole(boolean isUserInRole)
           
 void setUserPrincipal(java.security.Principal userPrincipal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isUserInRole

public boolean isUserInRole(java.lang.String role)
Specified by:
isUserInRole in interface WebServiceContext
Parameters:
role - The role to check.
Returns:
Returns boolean indicating whether user is in Role

getMessageContext

public MessageContext getMessageContext()
Specified by:
getMessageContext in interface WebServiceContext
Returns:
Returns the messageContext.

getUserPrincipal

public java.security.Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface WebServiceContext
Returns:
Returns the userPrincipal.

setUserInRole

public void setUserInRole(boolean isUserInRole)
Parameters:
isUserInRole - The isUserInRole to set.

setMessageContext

public void setMessageContext(MessageContext messageContext)
Parameters:
messageContext - The messageContext to set.

setUserPrincipal

public void setUserPrincipal(java.security.Principal userPrincipal)
Parameters:
userPrincipal - The userPrincipal to set.

getEndpointReference

public <T extends EndpointReference> T getEndpointReference(java.lang.Class<T> arg0,
                                                            org.w3c.dom.Element... arg1)
Specified by:
getEndpointReference in interface WebServiceContext

getEndpointReference

public EndpointReference getEndpointReference(org.w3c.dom.Element... arg0)
Specified by:
getEndpointReference in interface WebServiceContext

annotationType

public java.lang.Class<java.lang.annotation.Annotation> annotationType()


Copyright © 2007 Apache Web Services Project. All Rights Reserved.