Package org.glassfish.ejb.api
Interface EJBInvocation
public interface EJBInvocation
This interface provides access to the exported portions of the ejb invocation object.
- Author:
- Kenneth Saks
-
Method Summary
Modifier and TypeMethodDescriptionbooleanUse the underlying container to authorize this invocationjakarta.ejb.EJBContextUsed by Jakarta Authorization implementation to get an enterprise bean instance for the EnterpriseBean policy handler.This is for EJB JAXWS only.Object[]booleanbooleanisCallerInRole(String role) <T> voidsetMessage(T message) This is for EJB JAXWS only.voidsetWebServiceContext(Object webServiceContext) voidsetWebServiceMethod(Method method)
-
Method Details
-
getEJBContext
jakarta.ejb.EJBContext getEJBContext() -
getMessage
Object getMessage()This is for EJB JAXWS only.- Returns:
- the JAXWS message
-
setMessage
<T> void setMessage(T message) This is for EJB JAXWS only.- Parameters:
message- an unconsumed message
-
isAWebService
boolean isAWebService()- Returns:
- true if it is a webservice invocation
-
getMethod
Method getMethod()- Returns:
- the Java Method object for this Invocation
-
getMethodParams
Object[] getMethodParams()- Returns:
- the Method parameters for this Invocation
-
getJaccEjb
Object getJaccEjb()Used by Jakarta Authorization implementation to get an enterprise bean instance for the EnterpriseBean policy handler. The Jakarta Authorization implementation should use this method rather than directly accessing the ejb field. -
authorizeWebService
Use the underlying container to authorize this invocation- Returns:
- true if the invocation was authorized by the underlying container
- Throws:
Exception- TODO, change this to throw some subclass
-
isCallerInRole
- Returns:
- true if the SecurityManager reports that the caller is in role
-
setWebServiceMethod
-
getWebServiceMethod
Method getWebServiceMethod() -
setWebServiceContext
-