public interface Request
Modifier and Type | Method and Description |
---|---|
void |
convertToStateful(SessionID sessionId)
Attempt to convert the current invocation into a stateful invocation.
|
EJBIdentifier |
getEJBIdentifier()
Get the identifier of the target EJB.
|
default SocketAddress |
getLocalAddress()
Get the local address that the request was received to, if known.
|
default SocketAddress |
getPeerAddress()
Get the peer address that the request was received from, if known.
|
String |
getProtocol()
Get the protocol of this request.
|
default <C> C |
getProviderInterface(Class<C> providerInterfaceType)
Get the provider interface associated with the request.
|
Executor |
getRequestExecutor()
Get the request executor.
|
org.wildfly.security.auth.server.SecurityIdentity |
getSecurityIdentity()
Get the security identity that is associated with this invocation.
|
boolean |
isBlockingCaller()
Determine if this request is blocking a local thread.
|
void |
writeCancelResponse()
Write a response indicating that the request was successfully cancelled.
|
void |
writeException(Exception exception)
Write a message indicating that an exception was thrown by the operation.
|
void |
writeNoSuchEJB()
Write a message indicating that the EJB is not found on this server.
|
void |
writeNotStateful()
Write a message indicating that given EJB is not actually stateful.
|
void |
writeWrongViewType()
Write a message indicating that the EJB exists but the locator does not refer to a remote view.
|
Executor getRequestExecutor()
default SocketAddress getPeerAddress()
null
if it is not knowndefault SocketAddress getLocalAddress()
null
if it is not knownString getProtocol()
null
)boolean isBlockingCaller()
true
if the request is blocking the caller thread, false
otherwise@NotNull EJBIdentifier getEJBIdentifier()
null
)org.wildfly.security.auth.server.SecurityIdentity getSecurityIdentity()
null
if the connection is not bound to a security domainvoid writeException(@NotNull Exception exception)
exception
- the exception that was thrown (must not be null
)void writeNoSuchEJB()
void writeWrongViewType()
void writeCancelResponse()
void writeNotStateful()
void convertToStateful(@NotNull SessionID sessionId) throws IllegalArgumentException, IllegalStateException
sessionId
- the new session ID (must not be null
)IllegalArgumentException
- if the current invocation cannot be converted to a stateful invocation because
it is already stateful or the target EJB is not a stateful EJBIllegalStateException
- if the invocation was already converted to be stateful with a different session IDdefault <C> C getProviderInterface(Class<C> providerInterfaceType)
C
- the provider interface typeproviderInterfaceType
- the provider interface type class (must not be null
)null
if it is not knownCopyright © 2017 JBoss by Red Hat. All rights reserved.