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)
EndpointReference
getEndpointReference(Element... arg0)
MessageContext
getMessageContext()
Principal
getUserPrincipal()
boolean
isUserInRole(String role)
void
setMessageContext(MessageContext messageContext)
void
setUserInRole(boolean isUserInRole)
void
setUserPrincipal(Principal userPrincipal)
-
-
-
Method Detail
-
isUserInRole
public boolean isUserInRole(String role)
- Specified by:
isUserInRole
in interfaceWebServiceContext
- Parameters:
role
- The role to check.- Returns:
- Returns boolean indicating whether user is in Role
-
getMessageContext
public MessageContext getMessageContext()
- Specified by:
getMessageContext
in interfaceWebServiceContext
- Returns:
- Returns the messageContext.
-
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipal
in 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:
getEndpointReference
in interfaceWebServiceContext
-
getEndpointReference
public EndpointReference getEndpointReference(Element... arg0)
- Specified by:
getEndpointReference
in interfaceWebServiceContext
-
annotationType
public Class<Annotation> annotationType()
-
-