org.apache.servicemix.cxfse
Class CxfSeProxyFactoryBean

java.lang.Object
  extended by org.apache.servicemix.cxfse.CxfSeProxyFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class CxfSeProxyFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

Author:
ffang

Nested Class Summary
static class CxfSeProxyFactoryBean.ClearClientResponseContextInterceptor
           
 class CxfSeProxyFactoryBean.PropagateSecuritySubjectDeliveryChannel
           
 
Constructor Summary
CxfSeProxyFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 java.lang.Object getComponentRegistry()
           
 org.apache.servicemix.jbi.api.Container getContainer()
           
 javax.jbi.component.ComponentContext getContext()
          Allows injecting the ComponentContext
 java.lang.String getEndpoint()
          The name of the endpoint.
 org.apache.servicemix.jbi.api.ClientFactory getFactory()
          Allows injecting a ClientFactory
 javax.xml.namespace.QName getInterfaceName()
          Specifies the servicemodel interface name
protected  javax.jbi.component.ComponentContext getInternalContext()
           
 java.lang.String getName()
           
 java.lang.Object getObject()
           
 java.lang.Class getObjectType()
           
 javax.xml.namespace.QName getService()
          Specifies the servicemodel service name
 java.lang.Class getType()
           
 boolean isClearClientResponseContext()
           
 boolean isMtomEnabled()
           
 boolean isPropagateSecuritySubject()
           
 boolean isSingleton()
           
 boolean isUseJBIWrapper()
           
 boolean isUseSOAPEnvelope()
           
 void setClearClientResponseContext(boolean clearClientResponseContext)
          Specifies if the CXF client response context is cleared after each proxy invocation.
 void setComponentRegistry(java.lang.Object componentRegistry)
          Allows injecting a custom component registry for looking up the proxied endpoint
 void setContainer(org.apache.servicemix.jbi.api.Container container)
          Allows injecting a JBI Container instance (e.g.
 void setContext(javax.jbi.component.ComponentContext context)
           
 void setEndpoint(java.lang.String endpointName)
           
 void setFactory(org.apache.servicemix.jbi.api.ClientFactory factory)
           
 void setInterfaceName(javax.xml.namespace.QName interfaceName)
           
 void setMtomEnabled(boolean mtomEnabled)
          Specifies if the endpoint can process messages with binary data.
 void setName(java.lang.String name)
          Specifies the JNDI name for looking up the ClientFactory.
 void setPropagateSecuritySubject(boolean propagateSecuritySubject)
          When set to true, the security subject is propagated along to the proxied endpoint.
 void setService(javax.xml.namespace.QName service)
           
 void setType(java.lang.Class type)
          Specifies the webservice POJO type
 void setUseJBIWrapper(boolean useJBIWrapper)
          Specifies if the endpoint expects messages that are encased in the JBI wrapper used for SOAP messages.
 void setUseSOAPEnvelope(boolean useSOAPEnvelope)
          Specifies if the endpoint expects soap messages when useJBIWrapper is false, if useJBIWrapper is true then ignore useSOAPEnvelope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CxfSeProxyFactoryBean

public CxfSeProxyFactoryBean()
Method Detail

getObject

public java.lang.Object getObject()
                           throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
java.lang.Exception

getObjectType

public java.lang.Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

getInternalContext

protected javax.jbi.component.ComponentContext getInternalContext()
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

getType

public java.lang.Class getType()

setType

public void setType(java.lang.Class type)
Specifies the webservice POJO type


getEndpoint

public java.lang.String getEndpoint()
The name of the endpoint.


setEndpoint

public void setEndpoint(java.lang.String endpointName)

getInterfaceName

public javax.xml.namespace.QName getInterfaceName()
Specifies the servicemodel interface name


setInterfaceName

public void setInterfaceName(javax.xml.namespace.QName interfaceName)

getService

public javax.xml.namespace.QName getService()
Specifies the servicemodel service name


setService

public void setService(javax.xml.namespace.QName service)

getContext

public javax.jbi.component.ComponentContext getContext()
Allows injecting the ComponentContext


setContext

public void setContext(javax.jbi.component.ComponentContext context)
Parameters:
context - the context to set

getContainer

public org.apache.servicemix.jbi.api.Container getContainer()

setContainer

public void setContainer(org.apache.servicemix.jbi.api.Container container)
Allows injecting a JBI Container instance (e.g. for testing purposes).


getFactory

public org.apache.servicemix.jbi.api.ClientFactory getFactory()
Allows injecting a ClientFactory


setFactory

public void setFactory(org.apache.servicemix.jbi.api.ClientFactory factory)
Parameters:
factory - the factory to set

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)
Specifies the JNDI name for looking up the ClientFactory. Defaults to java:comp/env/jbi/ClientFactory.

Parameters:
name - the name to set

isPropagateSecuritySubject

public boolean isPropagateSecuritySubject()

setPropagateSecuritySubject

public void setPropagateSecuritySubject(boolean propagateSecuritySubject)
When set to true, the security subject is propagated along to the proxied endpoint. Defaults to false.

Parameters:
propagateSecuritySubject - the propagateSecuritySubject to set

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

destroy

public void destroy()
             throws java.lang.Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
java.lang.Exception

setUseJBIWrapper

public void setUseJBIWrapper(boolean useJBIWrapper)
Specifies if the endpoint expects messages that are encased in the JBI wrapper used for SOAP messages. Ignore the value of useSOAPEnvelope if useJBIWrapper is true


isUseJBIWrapper

public boolean isUseJBIWrapper()

setUseSOAPEnvelope

public void setUseSOAPEnvelope(boolean useSOAPEnvelope)
Specifies if the endpoint expects soap messages when useJBIWrapper is false, if useJBIWrapper is true then ignore useSOAPEnvelope


isUseSOAPEnvelope

public boolean isUseSOAPEnvelope()

setMtomEnabled

public void setMtomEnabled(boolean mtomEnabled)
Specifies if the endpoint can process messages with binary data.

Parameters:
mtomEnabled - a boolean

isMtomEnabled

public boolean isMtomEnabled()

setComponentRegistry

public void setComponentRegistry(java.lang.Object componentRegistry)
Allows injecting a custom component registry for looking up the proxied endpoint


getComponentRegistry

public java.lang.Object getComponentRegistry()

setClearClientResponseContext

public void setClearClientResponseContext(boolean clearClientResponseContext)
Specifies if the CXF client response context is cleared after each proxy invocation. Set to true if caller wishes to use CXF client call to getResponseContext() to obtain response values directly, such as the message exchange for the invocation.


isClearClientResponseContext

public boolean isClearClientResponseContext()


Copyright © 2005-2012 FuseSource. All Rights Reserved.