Package com.sun.xml.rpc.client.dii
Class CallInvokerImpl
- java.lang.Object
-
- com.sun.xml.rpc.client.StreamingSender
-
- com.sun.xml.rpc.client.dii.CallInvokerImpl
-
- All Implemented Interfaces:
CallInvoker,CallPropertyConstants
public class CallInvokerImpl extends StreamingSender implements CallInvoker, CallPropertyConstants
- Author:
- JAX-RPC Development Team
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanacceptFastInfosetSet to true if ACCEPT_FAST_INFOSET_PROPERTY is set in Call instance.protected String[]additionalNamespacesprotected ClientTransportclientTransportprotected StringdefaultEnvEncodingStyleprotected JAXRPCDeserializerfaultDeserializerprotected StringimplicitEnvEncodingStyleprotected JAXRPCDeserializerresponseDeserializerprotected ClientTransportFactorytransportFactoryprotected booleanuseFastInfosetSet to true if USE_FAST_INFOSET_PROPERTY is set in Call instance.-
Fields inherited from interface com.sun.xml.rpc.client.dii.CallPropertyConstants
CONTENT_NEGOTIATION_PROPERTY, ENCODING_STYLE_PROPERTY, ENDPOINT_ADDRESS_PROPERTY, GET_ATTACHMENT_PROPERTY, HOSTNAME_VERIFICATION_PROPERTY, HTTP_COOKIE_JAR, HTTP_STATUS_CODE, OPERATION_STYLE_PROPERTY, PASSWORD_PROPERTY, REDIRECT_REQUEST_PROPERTY, RPC_LITERAL_RESPONSE_QNAME, SECURITY_CONTEXT, SESSION_MAINTAIN_PROPERTY, SET_ATTACHMENT_PROPERTY, SOAPACTION_URI_PROPERTY, SOAPACTION_USE_PROPERTY, USERNAME_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description CallInvokerImpl()
-
Method Summary
-
Methods inherited from class com.sun.xml.rpc.client.StreamingSender
_callRequestHandlers, _callResponseHandlers, _getActor, _getPreferredCharacterEncoding, _getUnderstoodHeaders, _getXMLReaderFactory, _handleEmptyBody, _postBodyReadingHook, _postEnvelopeReadingHook, _postHandlingHook, _postHeaderReadingHook, _postRequestSendingHook, _postRequestWritingHook, _preBodyReadingHook, _preEnvelopeReadingHook, _preHandlingHook, _preHeaderReadingHook, _preRequestSendingHook, _preRequestWritingHook, _processHeaderElement, _processHeaders, _raiseFault, _readBodyFaultElement, _readHeaderElement, _send, _sendOneWay, _writeRequest
-
-
-
-
Field Detail
-
faultDeserializer
protected JAXRPCDeserializer faultDeserializer
-
responseDeserializer
protected JAXRPCDeserializer responseDeserializer
-
transportFactory
protected ClientTransportFactory transportFactory
-
clientTransport
protected ClientTransport clientTransport
-
defaultEnvEncodingStyle
protected String defaultEnvEncodingStyle
-
implicitEnvEncodingStyle
protected String implicitEnvEncodingStyle
-
additionalNamespaces
protected String[] additionalNamespaces
-
useFastInfoset
protected boolean useFastInfoset
Set to true if USE_FAST_INFOSET_PROPERTY is set in Call instance. Default: false.
-
acceptFastInfoset
protected boolean acceptFastInfoset
Set to true if ACCEPT_FAST_INFOSET_PROPERTY is set in Call instance. Default: true.
-
-
Method Detail
-
setDefaultTransportFactory
public static void setDefaultTransportFactory(ClientTransportFactory factory)
-
doInvoke
public SOAPResponseStructure doInvoke(CallRequest callInfo, JAXRPCSerializer requestSerializer, JAXRPCDeserializer responseDeserializer, JAXRPCDeserializer faultDeserializer) throws Exception
- Specified by:
doInvokein interfaceCallInvoker- Throws:
Exception
-
doInvokeOneWay
public void doInvokeOneWay(CallRequest callInfo, JAXRPCSerializer requestSerializer) throws Exception
- Specified by:
doInvokeOneWayin interfaceCallInvoker- Throws:
Exception
-
_start
protected StreamingSenderState _start(javax.xml.rpc.handler.HandlerChain handlerChain)
Overrides definition in StreamingSender to create a StreamingSenderState object using the FI flags set in this object.- Overrides:
_startin classStreamingSender
-
_handleRuntimeExceptionInSend
protected void _handleRuntimeExceptionInSend(RuntimeException rex) throws Exception
- Overrides:
_handleRuntimeExceptionInSendin classStreamingSender- Throws:
Exception
-
_preSendingHook
protected void _preSendingHook(StreamingSenderState state) throws Exception
- Overrides:
_preSendingHookin classStreamingSender- Throws:
Exception
-
_postSendingHook
protected void _postSendingHook(StreamingSenderState state) throws Exception
- Overrides:
_postSendingHookin classStreamingSender- Throws:
Exception
-
_getTransportFactory
public ClientTransportFactory _getTransportFactory()
-
_setTransportFactory
public void _setTransportFactory(ClientTransportFactory factory)
-
_getTransport
public ClientTransport _getTransport()
- Specified by:
_getTransportin classStreamingSender
-
_readFirstBodyElement
protected void _readFirstBodyElement(XMLReader bodyReader, SOAPDeserializationContext deserializationContext, StreamingSenderState state) throws Exception
- Overrides:
_readFirstBodyElementin classStreamingSender- Throws:
Exception
-
getFaultDeserializer
protected JAXRPCDeserializer getFaultDeserializer()
-
getResponseDeserializer
protected JAXRPCDeserializer getResponseDeserializer()
-
_getDefaultEnvelopeEncodingStyle
public String _getDefaultEnvelopeEncodingStyle()
- Overrides:
_getDefaultEnvelopeEncodingStylein classStreamingSender
-
setImplicitEnvelopeEncodingStyle
public void setImplicitEnvelopeEncodingStyle(String style)
-
_getImplicitEnvelopeEncodingStyle
public String _getImplicitEnvelopeEncodingStyle()
- Overrides:
_getImplicitEnvelopeEncodingStylein classStreamingSender
-
_getNamespaceDeclarations
protected String[] _getNamespaceDeclarations()
- Overrides:
_getNamespaceDeclarationsin classStreamingSender
-
_getXMLWriterFactory
protected XMLWriterFactory _getXMLWriterFactory()
Overrides definition in StreamingSender to return an FI factory instance when property is set on the stub. The method _getXMLReaderFactory() does not need to be redefined since SAAJ already returns an FastInfosetSource.- Overrides:
_getXMLWriterFactoryin classStreamingSender
-
-