public abstract class CommonClient extends Object implements StubExt, HeaderSource
Modifier and Type | Field and Description |
---|---|
protected CommonBindingProvider |
bindingProvider |
protected EndpointMetaData |
epMetaData |
protected QName |
operationName |
static String |
SESSION_COOKIES |
PROPERTY_AUTH_TYPE, PROPERTY_AUTH_TYPE_BASIC, PROPERTY_CHUNKED_ENCODING_SIZE, PROPERTY_CLIENT_TIMEOUT, PROPERTY_CONNECTION_TIMEOUT, PROPERTY_KEY_ALIAS, PROPERTY_KEY_STORE, PROPERTY_KEY_STORE_ALGORITHM, PROPERTY_KEY_STORE_PASSWORD, PROPERTY_KEY_STORE_TYPE, PROPERTY_RECEIVE_TIMEOUT, PROPERTY_SOCKET_FACTORY, PROPERTY_SSL_PROTOCOL, PROPERTY_SSL_PROVIDER_NAME, PROPERTY_TRUST_STORE, PROPERTY_TRUST_STORE_ALGORITHM, PROPERTY_TRUST_STORE_PASSWORD, PROPERTY_TRUST_STORE_TYPE
Modifier | Constructor and Description |
---|---|
protected |
CommonClient(EndpointMetaData epMetaData)
Create a call for a known WSDL endpoint.
|
protected |
CommonClient(ServiceMetaData serviceMetaData)
Create a call that needs to be configured manually
|
protected |
CommonClient(ServiceMetaData serviceMetaData,
QName portName,
QName opName)
Create a call for a known WSDL endpoint.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttachmentPart(AttachmentPart part)
Adds the given AttachmentPart object to the outgoing SOAPMessage.
|
protected void |
addAttachmentParts(SOAPMessage reqMessage) |
protected void |
addSessionInfo(SOAPMessage reqMessage,
Map<String,Object> callProperties) |
protected abstract boolean |
callFaultHandlerChain(QName portName,
org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type,
Exception ex) |
protected abstract boolean |
callRequestHandlerChain(QName portName,
org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type) |
protected abstract boolean |
callResponseHandlerChain(QName portName,
org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type) |
void |
clearAttachmentParts()
Clears the list of attachment parts.
|
protected abstract void |
closeHandlerChain(QName portName,
org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type) |
AttachmentPart |
createAttachmentPart()
Creates a new empty AttachmentPart object.
|
protected EndpointInvocation |
createEndpointInvocation(OperationMetaData opMetaData) |
protected abstract CommonBindingProvider |
getCommonBindingProvider() |
EndpointMetaData |
getEndpointMetaData()
Get the endpoint meta data for this stub/dispatch
|
OperationMetaData |
getOperationMetaData()
Get the OperationMetaData for the given operation name
If it does not exist, it will be created
|
OperationMetaData |
getOperationMetaData(QName opName) |
QName |
getOperationName()
Gets the name of the operation to be invoked using this Call instance.
|
protected abstract Map<String,Object> |
getRequestContext() |
abstract String |
getTargetEndpointAddress()
Gets the address of a target service endpoint.
|
protected Object |
invoke(QName opName,
Object[] inputParams,
boolean forceOneway)
Call invokation goes as follows:
1) synchronize the operation name with the operation meta data
2) synchronize the input parameters with the operation meta data
3) generate the payload using a BindingProvider
4) get the Invoker from Remoting, based on the target endpoint address
5) do the invocation through the Remoting framework
6) unwrap the result using the BindingProvider
7) return the result
|
protected abstract CommonMessageContext |
processPivot(CommonMessageContext requestContext) |
protected abstract void |
setInboundContextProperties() |
void |
setOperationName(QName operationName)
Sets the name of the operation to be invoked using this Call instance.
|
protected abstract void |
setOutboundContextProperties() |
abstract void |
setTargetEndpointAddress(String address)
Sets the address of the target service endpoint.
|
protected abstract boolean |
shouldMaintainSession() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeaders
public static final String SESSION_COOKIES
protected EndpointMetaData epMetaData
protected QName operationName
protected CommonBindingProvider bindingProvider
protected CommonClient(ServiceMetaData serviceMetaData)
protected CommonClient(EndpointMetaData epMetaData)
protected CommonClient(ServiceMetaData serviceMetaData, QName portName, QName opName)
public abstract String getTargetEndpointAddress()
public abstract void setTargetEndpointAddress(String address)
public QName getOperationName()
public void setOperationName(QName operationName)
public OperationMetaData getOperationMetaData()
public OperationMetaData getOperationMetaData(QName opName)
public EndpointMetaData getEndpointMetaData()
EndpointMetadataProvider
getEndpointMetaData
in interface EndpointMetadataProvider
protected abstract boolean callRequestHandlerChain(QName portName, org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type)
protected abstract boolean callResponseHandlerChain(QName portName, org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type)
protected abstract boolean callFaultHandlerChain(QName portName, org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type, Exception ex)
protected abstract void closeHandlerChain(QName portName, org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType type)
protected abstract void setInboundContextProperties()
protected abstract void setOutboundContextProperties()
protected abstract boolean shouldMaintainSession()
protected EndpointInvocation createEndpointInvocation(OperationMetaData opMetaData)
protected Object invoke(QName opName, Object[] inputParams, boolean forceOneway) throws Exception
Exception
protected void addSessionInfo(SOAPMessage reqMessage, Map<String,Object> callProperties)
protected void addAttachmentParts(SOAPMessage reqMessage)
protected abstract CommonMessageContext processPivot(CommonMessageContext requestContext)
protected abstract CommonBindingProvider getCommonBindingProvider()
public void addAttachmentPart(AttachmentPart part)
addAttachmentPart
in interface StubExt
public void clearAttachmentParts()
clearAttachmentParts
in interface StubExt
public AttachmentPart createAttachmentPart()
createAttachmentPart
in interface StubExt
Copyright © 2018 JBoss by Red Hat. All rights reserved.