public class StubFactory<T> extends Object implements StubFactoryDSL.AtClause<T>
Factories are instantiated with descriptions of target services (cf. GCoreService
) and use them to perform the
following tasks:
setProxy(String, int)
).
StubCache
,
GCoreJAXWSHandler
Constructor and Description |
---|
StubFactory(GCoreService<T> target)
Creates an instance for a given
GCoreService . |
Modifier and Type | Method and Description |
---|---|
T |
at(EndpointReference reference)
Returns a stub for a service endpoint or service instance at a given address.
|
T |
at(URI address)
Returns a stub for a service endpoint at a given address.
|
static void |
setProxy(String host,
int port)
Configures a proxy for client interactions through this factory.
|
static <T> StubFactoryDSL.AtClause<T> |
stubFor(GCoreService<T> service)
Creates a stub for a given
GCoreService |
public StubFactory(GCoreService<T> target)
GCoreService
.target
- the servicepublic T at(EndpointReference reference)
StubFactoryDSL.AtClause
at
in interface StubFactoryDSL.AtClause<T>
reference
- a reference to the endpoint or instancepublic T at(URI address)
StubFactoryDSL.AtClause
at
in interface StubFactoryDSL.AtClause<T>
address
- the addresspublic static <T> StubFactoryDSL.AtClause<T> stubFor(GCoreService<T> service)
GCoreService
service
- information about the servicepublic static void setProxy(String host, int port)
host
- the proxy hostCopyright © 2019. All Rights Reserved.