T - the target EJB typepublic interface InvocationRequest<T> extends Request
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAttachments()
Get the invocation attachment map.
|
default EJBIdentifier |
getEJBIdentifier()
Get the identifier of the target EJB.
|
EJBLocator<T> |
getEJBLocator()
Get the EJB locator of the request.
|
EJBMethodLocator |
getMethodLocator()
Get the EJB method locator.
|
Object[] |
getParameters()
Get the method invocation parameters.
|
default <S> InvocationRequest<S> |
narrowTo(Class<S> clazz)
Safely narrow the invocation's generic type to the given type.
|
void |
writeInvocationResult(Object result)
Write the invocation result message.
|
void |
writeNoSuchMethod()
Write a message indicating that the method is not found on the EJB.
|
void |
writeSessionNotActive()
Write a message indicating that the session is inactive.
|
convertToStateful, getLocalAddress, getPeerAddress, getProtocol, getRequestExecutor, getTransaction, getWeakAffinity, hasTransaction, isBlockingCaller, writeCancelResponse, writeException, writeNoSuchEJB, writeNotStateful@NotNull Map<String,Object> getAttachments()
null)@NotNull EJBMethodLocator getMethodLocator()
null)@NotNull Object[] getParameters()
null)@NotNull default EJBIdentifier getEJBIdentifier()
getEJBLocator() and
returns the identifier portion.getEJBIdentifier in interface Requestnull)@NotNull EJBLocator<T> getEJBLocator()
getEJBIdentifier(), but of a type corresponding to the EJB type, and with a resolved EJB class
and affinity.null)void writeNoSuchMethod()
void writeSessionNotActive()
void writeInvocationResult(Object result)
result - the invocation result@NotNull default <S> InvocationRequest<S> narrowTo(@NotNull Class<S> clazz) throws ClassCastException
S - the type to narrow toclazz - the type class instance (must not be null)null)ClassCastException - if the narrow operation did not succeedCopyright © 2017 JBoss by Red Hat. All rights reserved.