public final class EJBClientInvocationContext extends Attachable
Modifier and Type | Field and Description |
---|---|
static String |
PRIVATE_ATTACHMENTS_KEY |
Modifier and Type | Method and Description |
---|---|
void |
discardResult()
Discard the result from this request.
|
protected void |
finalize() |
EJBClientContext |
getClientContext()
Get the EJB client context associated with this invocation.
|
Map<String,Object> |
getContextData()
Get the context data.
|
Method |
getInvokedMethod()
Get the invoked proxy method.
|
Object |
getInvokedProxy()
Get the invoked proxy object.
|
EJBLocator<?> |
getLocator()
Get the locator for the invocation target.
|
Object[] |
getParameters()
Get the invocation method parameters.
|
<T> T |
getProxyAttachment(AttachmentKey<T> key)
Get a value attached to the proxy.
|
protected EJBReceiver |
getReceiver()
Get the EJB receiver associated with this invocation.
|
Object |
getResult()
Get the invocation result from this request.
|
Class<?> |
getViewClass()
Get the invoked view class.
|
<T> T |
removeProxyAttachment(AttachmentKey<T> key)
Remove a value attached to the proxy.
|
void |
sendRequest()
Proceed with sending the request normally.
|
getAttachment, getAttachments, putAttachment, putAttachmentIfAbsent, removeAttachment, removeAttachment, replaceAttachment, replaceAttachment
public static final String PRIVATE_ATTACHMENTS_KEY
public <T> T getProxyAttachment(AttachmentKey<T> key)
T
- the value typekey
- the attachment keynull
if there is nonepublic <T> T removeProxyAttachment(AttachmentKey<T> key)
T
- the value typekey
- the attachment keynull
if there is nonepublic EJBClientContext getClientContext()
public Map<String,Object> getContextData()
InvocationContext.getContextData()
method, and thus
can be used to pass data from the client to the server (as long as all map values are
Serializable
).public EJBLocator<?> getLocator()
public void sendRequest() throws Exception
Exception
- if the request was not successfully sentpublic Object getResult() throws Exception
EJBClientInterceptor.handleInvocationResult(EJBClientInvocationContext)
.Exception
- if the invocation did not succeedpublic void discardResult() throws IllegalStateException
EJBClientInterceptor.handleInvocationResult(EJBClientInvocationContext)
.IllegalStateException
- if there is no result to discardprotected EJBReceiver getReceiver()
public Object getInvokedProxy()
public Method getInvokedMethod()
public Object[] getParameters()
public Class<?> getViewClass()
Copyright © 2018 JBoss by Red Hat. All rights reserved.