final class SyncMethodHandler extends MethodHandler
MethodHandler
that handles synchronous method invocations.
This class mainly performs the following two tasks:
JAXBMessage
that represents a request message.
At the construction time, we prepare {@link BodyBuilder} and {@link MessageFiller}s that know how to move arguments into a {@link Message}. Some arguments go to the payload, some go to headers, still others go to attachments.
method, owner
Constructor and Description |
---|
SyncMethodHandler(SEIStub owner,
Method m) |
Modifier and Type | Method and Description |
---|---|
(package private) ValueGetterFactory |
getValueGetterFactory() |
(package private) Object |
invoke(Object proxy,
Object[] args)
Performs the method invocation.
|
(package private) Object |
invoke(Object proxy,
Object[] args,
RequestContext rc,
ResponseContextReceiver receiver)
Invokes synchronously, but with the given
RequestContext
and ResponseContextReceiver . |
Object invoke(Object proxy, Object[] args) throws Throwable
MethodHandler
invoke
in class MethodHandler
proxy
- The proxy object exposed to the user. Must not be null.args
- The method invocation arguments. To handle asynchroonus method invocations
without array reallocation, this aray is allowed to be longer than the
actual number of arguments to the method. Additional array space should be
simply ignored.WebServiceException
- If used on the client side, a WebServiceException
signals an error
during the service invocation.Throwable
- some faults are reported in terms of checked exceptions.Object invoke(Object proxy, Object[] args, RequestContext rc, ResponseContextReceiver receiver) throws Throwable
RequestContext
and ResponseContextReceiver
.rc
- This RequestContext
is used for invoking this method.
We take this as a separate parameter because of the async invocation
handling, which requires a separate copy.Throwable
ValueGetterFactory getValueGetterFactory()
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.