public class HttpServiceFactory
extends java.lang.Object
Service proxies using Spring's HTTP invoker| Modifier and Type | Class and Description |
|---|---|
private class |
HttpServiceFactory.InvocationInterceptor |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.Class<? extends Service>,Service> |
cachedProxies |
private HttpServiceInvocationData |
invocationData |
private java.lang.String |
rootUrl |
| Constructor and Description |
|---|
HttpServiceFactory() |
HttpServiceFactory(java.lang.String rootUrl,
HttpServiceInvocationData invocationData) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes any cached proxies
|
<T extends Service> |
getProxy(java.lang.Class<T> serviceInterface) |
void |
setInvocationData(HttpServiceInvocationData invocationData) |
void |
setRootUrl(java.lang.String rootUrl) |
private java.lang.String rootUrl
private HttpServiceInvocationData invocationData
public HttpServiceFactory()
public HttpServiceFactory(java.lang.String rootUrl,
HttpServiceInvocationData invocationData)
public void clear()
public <T extends Service> T getProxy(java.lang.Class<T> serviceInterface)
public void setInvocationData(HttpServiceInvocationData invocationData)
public void setRootUrl(java.lang.String rootUrl)