Package org.jboss.ejb.server
Interface InvocationRequest
-
- All Superinterfaces:
Request
public interface InvocationRequest extends Request
An Enterprise Bean method invocation request.- Author:
- David M. Lloyd
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceInvocationRequest.ResolvedThe resolved content of the request.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EJBMethodLocatorgetMethodLocator()Get the Enterprise Beans method locator.InvocationRequest.ResolvedgetRequestContent(ClassLoader classLoader)Get the resolved content of the request.voidwriteNoSuchMethod()Write a message indicating that the method is not found on the Enterprise Beans.default voidwriteProceedAsync()Write a message indicating that this is an async request.voidwriteSessionNotActive()Write a message indicating that the session is inactive.-
Methods inherited from interface org.jboss.ejb.server.Request
convertToStateful, getEJBIdentifier, getLocalAddress, getPeerAddress, getProtocol, getProviderInterface, getRequestExecutor, getSecurityIdentity, isBlockingCaller, updateStrongAffinity, updateWeakAffinity, writeCancelResponse, writeException, writeNoSuchEJB, writeNotStateful, writeWrongViewType
-
-
-
-
Method Detail
-
getRequestContent
InvocationRequest.Resolved getRequestContent(ClassLoader classLoader) throws IOException, ClassNotFoundException
Get the resolved content of the request.- Parameters:
classLoader- the class loader to use to resolve the request- Returns:
- the request content
- Throws:
IOException- if the request content failed to be deserializedClassNotFoundException- if a class in the request content failed to be found in the given class loader
-
getMethodLocator
@NotNull EJBMethodLocator getMethodLocator()
Get the Enterprise Beans method locator.- Returns:
- the Enterprise Beans method locator (must not be
null)
-
writeNoSuchMethod
void writeNoSuchMethod()
Write a message indicating that the method is not found on the Enterprise Beans. The request should be abandoned after invoking this method.
-
writeSessionNotActive
void writeSessionNotActive()
Write a message indicating that the session is inactive. The request should be abandoned after invoking this method.
-
writeProceedAsync
default void writeProceedAsync()
Write a message indicating that this is an async request. If this is not required by the underlying protocol then this may be a noop
-
-