public abstract class ServiceClientImpl extends Object implements ServiceClient
Modifier and Type | Class and Description |
---|---|
protected static interface |
ServiceClientImpl.ServiceExecutor<T,U> |
Constructor and Description |
---|
ServiceClientImpl(URL url) |
Modifier and Type | Method and Description |
---|---|
protected void |
addHeaders(List<CommonProtos.Header> headers) |
void |
addRequestHeader(String name,
String value) |
protected <T> T |
convert(Object source,
Class<T> targetClass) |
com.google.protobuf.RpcChannel |
createChannel() |
protected <T,U> U |
execute(ServiceClientImpl.ServiceExecutor<T,U> executor,
T request,
String methodName,
Object... args) |
Collection<CallNode> |
getLastCallTree() |
String |
getLastCopyrightInfo() |
String |
getLastLicenseInfo() |
String |
getLastName() |
protected String |
getPassword() |
List<CommonProtos.Header> |
getRequestHeaders() |
Collection<BindingNode> |
getTreeBindings() |
protected URL |
getUrl() |
protected String |
getUserId() |
void |
setPassword(String password) |
void |
setUserId(String userId) |
public ServiceClientImpl(URL url)
public com.google.protobuf.RpcChannel createChannel()
public List<CommonProtos.Header> getRequestHeaders()
public Collection<BindingNode> getTreeBindings()
getTreeBindings
in interface ServiceClient
public void addRequestHeader(String name, String value)
addRequestHeader
in interface ServiceClient
public String getLastName()
getLastName
in interface ServiceClient
public String getLastCopyrightInfo()
getLastCopyrightInfo
in interface ServiceClient
public String getLastLicenseInfo()
getLastLicenseInfo
in interface ServiceClient
public Collection<CallNode> getLastCallTree()
getLastCallTree
in interface ServiceClient
public void setPassword(String password)
setPassword
in interface ServiceClient
public void setUserId(String userId)
setUserId
in interface ServiceClient
protected URL getUrl()
protected String getUserId()
protected String getPassword()
protected void addHeaders(List<CommonProtos.Header> headers)
protected <T,U> U execute(ServiceClientImpl.ServiceExecutor<T,U> executor, T request, String methodName, Object... args) throws LangridException
LangridException