public class MockAxisCompatibleServiceDescriptor extends Object implements AdsServiceDescriptor, AxisCompatible
Constructor and Description |
---|
MockAxisCompatibleServiceDescriptor() |
Modifier and Type | Method and Description |
---|---|
String |
getEndpointAddress(String endpointServer)
Returns
/mocks/ VERSION /MockAxisService appended to endpointServer
after removing any trailing forward slash from endpointServer. |
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 |
getVersion()
Returns
VERSION . |
public static final String VERSION
public Class<?> getLocatorClass() throws ClassNotFoundException
AxisCompatible
getLocatorClass
in interface AxisCompatible
ClassNotFoundException
- if no locator class can be foundpublic Class<?> getInterfaceClass() throws ServiceException
AdsServiceDescriptor
getInterfaceClass
in interface AdsServiceDescriptor
getInterfaceClass
in interface SoapServiceDescriptor
ServiceException
- if the interface could not be retrieved.public String getEndpointAddress(String endpointServer) throws MalformedURLException
/mocks/
VERSION
/MockAxisService
appended to endpointServer
after removing any trailing forward slash from endpointServer.
For example, given endpointServer of https://ads.google.com/
or
https://ads.google.com
, this method returns
https://ads.google.com/mocks/v201408/MockAxisService
.
getEndpointAddress
in interface AdsServiceDescriptor
getEndpointAddress
in interface SoapServiceDescriptor
MalformedURLException
- if the URL cannot be createdpublic String getVersion()
VERSION
.getVersion
in interface AdsServiceDescriptor
Copyright © 2015. All Rights Reserved.