Class WebServiceContextAnnot
- java.lang.Object
-
- org.apache.axis2.jaxws.description.builder.WebServiceContextAnnot
-
- All Implemented Interfaces:
WebServiceContext
public class WebServiceContextAnnot extends Object implements WebServiceContext
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Annotation>annotationType()<T extends EndpointReference>
TgetEndpointReference(Class<T> arg0, Element... arg1)EndpointReferencegetEndpointReference(Element... arg0)MessageContextgetMessageContext()PrincipalgetUserPrincipal()booleanisUserInRole(String role)voidsetMessageContext(MessageContext messageContext)voidsetUserInRole(boolean isUserInRole)voidsetUserPrincipal(Principal userPrincipal)
-
-
-
Method Detail
-
isUserInRole
public boolean isUserInRole(String role)
- Specified by:
isUserInRolein interfaceWebServiceContext- Parameters:
role- The role to check.- Returns:
- Returns boolean indicating whether user is in Role
-
getMessageContext
public MessageContext getMessageContext()
- Specified by:
getMessageContextin interfaceWebServiceContext- Returns:
- Returns the messageContext.
-
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipalin interfaceWebServiceContext- 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(Principal userPrincipal)
- Parameters:
userPrincipal- The userPrincipal to set.
-
getEndpointReference
public <T extends EndpointReference> T getEndpointReference(Class<T> arg0, Element... arg1)
- Specified by:
getEndpointReferencein interfaceWebServiceContext
-
getEndpointReference
public EndpointReference getEndpointReference(Element... arg0)
- Specified by:
getEndpointReferencein interfaceWebServiceContext
-
annotationType
public Class<Annotation> annotationType()
-
-