Interface InvocationRequest

All Superinterfaces:
Request

public interface InvocationRequest extends Request
An Enterprise Bean method invocation request.
Author:
David M. Lloyd
  • Method Details

    • getRequestContent

      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 deserialized
      ClassNotFoundException - 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