|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.clients.builders.AbstractBuilder<A,S,P>
A - the type of service addressesS - the type of service stubsP - the type of service proxiespublic abstract class AbstractBuilder<A,S,P>
Partial implementation of proxy builders.
| Field Summary | |
|---|---|
static int |
defaultTimeout
Default proxy timeout. |
| Constructor Summary | |
|---|---|
protected |
AbstractBuilder(ProxyPlugin<A,S,P> plugin,
EndpointCache<A> cache,
Property<?>... properties)
Constructs an instance with a given ProxyPlugin, and EndpointCache, and zero or more default Propertys. |
| Method Summary | |
|---|---|
protected void |
addProperty(Property<?> property)
Adds a custom property. |
P |
build()
|
protected abstract String |
contextPath()
|
protected abstract A |
convertAddress(W3CEndpointReference address)
Converts a W3CEndpointReference in a service address. |
protected ProxyPlugin<A,S,P> |
plugin()
Returns the ProxyPlugin. |
protected void |
setAddress(W3CEndpointReference address)
Sets the address. |
protected void |
setQuery(Query<A> query)
Sets the query. |
protected void |
setTimeout(int timeout)
Sets the timeout. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int defaultTimeout
| Constructor Detail |
|---|
protected AbstractBuilder(ProxyPlugin<A,S,P> plugin,
EndpointCache<A> cache,
Property<?>... properties)
ProxyPlugin, and EndpointCache, and zero or more default Propertys.
plugin - the plugincache - the cacheproperties - the properties| Method Detail |
|---|
protected ProxyPlugin<A,S,P> plugin()
ProxyPlugin.
protected void setQuery(Query<A> query)
query - the queryprotected void setTimeout(int timeout)
timeout - the timoutprotected void setAddress(W3CEndpointReference address)
address - the addressprotected void addProperty(Property<?> property)
property - the propertypublic P build()
protected abstract A convertAddress(W3CEndpointReference address)
W3CEndpointReference in a service address.
address - the address as a W3CEndpointReference
protected abstract String contextPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||