|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzj.unicore.wsrflite.xfire.XFireClientFactory
public class XFireClientFactory
Helper to create web service clients using XFire
| Field Summary | |
|---|---|
static String |
LOG_INCOMING
configuration property for enabling client-call logging. |
static String |
LOG_OUTGOING
configuration property for enabling client-call logging. |
protected static org.apache.log4j.Logger |
logger
|
protected ReliableProxyFactory |
proxyMaker
|
protected ISecurityProperties |
securityProperties
|
protected org.codehaus.xfire.DefaultXFire |
xfire
|
| Constructor Summary | |
|---|---|
XFireClientFactory()
|
|
XFireClientFactory(org.codehaus.xfire.XFire xfire)
|
|
| Method Summary | ||
|---|---|---|
protected void |
configureSecurity(org.codehaus.xfire.client.Client client,
ISecurityProperties sec,
String uri)
|
|
protected void |
configureSecurity(Object proxy,
ISecurityProperties sec,
String uri)
customize security settings on the client proxy object |
|
org.codehaus.xfire.client.Client |
createDynamicClient(String url,
ISecurityProperties sec)
creates a dynamic client from the wsdl of the service |
|
|
createPlainWSProxy(Class<T> iFace,
String url,
ISecurityProperties sec)
Create a proxy for the plain web service at the given URL, i.e. not using ws-addressing |
|
|
createProxy(Class<T> iFace,
String url,
org.w3.x2005.x08.addressing.EndpointReferenceType wsaEPR,
ISecurityProperties sec)
Create a proxy for the service at the given EPR |
|
protected List<org.codehaus.xfire.handler.Handler> |
getInHandlers()
returns a list of in handlers to add to the proxy client |
|
protected org.codehaus.xfire.service.Service |
getLocalService(String url)
|
|
protected List<org.codehaus.xfire.handler.Handler> |
getOutHandlers()
returns a list of out handlers to add to the proxy client |
|
protected boolean |
isLocal(String url)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
protected final org.codehaus.xfire.DefaultXFire xfire
protected final ReliableProxyFactory proxyMaker
protected ISecurityProperties securityProperties
public static final String LOG_INCOMING
public static final String LOG_OUTGOING
| Constructor Detail |
|---|
public XFireClientFactory()
public XFireClientFactory(org.codehaus.xfire.XFire xfire)
| Method Detail |
|---|
public <T> T createProxy(Class<T> iFace,
String url,
org.w3.x2005.x08.addressing.EndpointReferenceType wsaEPR,
ISecurityProperties sec)
throws Exception
iFace - Interface classurl - The url to contactwsaEPR - The EPR of the ServicesecurityProperties -
ExceptionBaseWSRFClientprotected List<org.codehaus.xfire.handler.Handler> getOutHandlers()
protected List<org.codehaus.xfire.handler.Handler> getInHandlers()
public <T> T createPlainWSProxy(Class<T> iFace,
String url,
ISecurityProperties sec)
throws MalformedURLException
iFace - url - sec -
MalformedURLException
Exceptionprotected boolean isLocal(String url)
protected org.codehaus.xfire.service.Service getLocalService(String url)
protected void configureSecurity(Object proxy,
ISecurityProperties sec,
String uri)
proxy -
protected void configureSecurity(org.codehaus.xfire.client.Client client,
ISecurityProperties sec,
String uri)
throws Exception
Exception
public org.codehaus.xfire.client.Client createDynamicClient(String url,
ISecurityProperties sec)
throws Exception
serviceURL - the URL, the service can be foundsec - Security Parameters
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||