Package org.jboss.ejb.server
Interface InvocationRequest
- All Superinterfaces:
Request
An Enterprise Bean method invocation request.
- Author:
- David M. Lloyd
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe resolved content of the request. -
Method Summary
Modifier and TypeMethodDescriptionGet the Enterprise Beans method locator.getRequestContent(ClassLoader classLoader) Get the resolved content of the request.voidWrite a message indicating that the method is not found on the Enterprise Beans.default voidWrite a message indicating that this is an async request.voidWrite 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 Details
-
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
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
-