public class AdWordsServiceDescriptor extends Object implements AdsServiceDescriptor, AxisCompatible, JaxWsCompatible
AdWordsServiceDescriptor
provides a class which defines a service
that can be instantiated through reflection.Constructor and Description |
---|
AdWordsServiceDescriptor(Class<?> interfaceClass,
String version,
com.google.api.ads.adwords.lib.conf.AdWordsApiConfiguration apiConfig)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getEndpointAddress(String endpointServer)
Gets the endpoint address for this service and server.
|
Class<?> |
getInterfaceClass()
Gets the class representing the RPC interface of the service.
|
Class<?> |
getLocatorClass()
Gets the Axis locator class such that it can be instantiated to create
an Axis service client.
|
String |
getPackageGroup()
Gets the package group that the service is in i.e.
|
Class<?> |
getServiceClass()
Gets the JAX-WS service class such that it can be instantiated to create
an JAX-WS service client.
|
String |
getVersion()
Gets the version for this service.
|
String |
toString() |
@Inject public AdWordsServiceDescriptor(Class<?> interfaceClass, String version, com.google.api.ads.adwords.lib.conf.AdWordsApiConfiguration apiConfig)
interfaceClass
- the Class<?>
object of the requested
interfaceClassversion
- the version of the serviceapiConfig
- the API configurationpublic Class<?> getInterfaceClass() throws ServiceException
AdsServiceDescriptor
getInterfaceClass
in interface AdsServiceDescriptor
getInterfaceClass
in interface SoapServiceDescriptor
ServiceException
- if the interface could not be retrieved.AdsServiceDescriptor.getInterfaceClass()
public String getEndpointAddress(String endpointServer) throws MalformedURLException
AdsServiceDescriptor
getEndpointAddress
in interface AdsServiceDescriptor
getEndpointAddress
in interface SoapServiceDescriptor
MalformedURLException
AdsServiceDescriptor.getEndpointAddress(String)
public String getVersion()
AdsServiceDescriptor
getVersion
in interface AdsServiceDescriptor
AdsServiceDescriptor.getVersion()
public Class<?> getLocatorClass() throws ClassNotFoundException
AxisCompatible
getLocatorClass
in interface AxisCompatible
ClassNotFoundException
- if no locator class can be foundAxisCompatible.getLocatorClass()
public Class<?> getServiceClass() throws ClassNotFoundException
JaxWsCompatible
getServiceClass
in interface JaxWsCompatible
ClassNotFoundException
- if no service class can be foundJaxWsCompatible.getServiceClass()
public String getPackageGroup()
Copyright © 2018. All Rights Reserved.