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 ServiceClientpublic void addRequestHeader(String name, String value)
addRequestHeader in interface ServiceClientpublic String getLastName()
getLastName in interface ServiceClientpublic String getLastCopyrightInfo()
getLastCopyrightInfo in interface ServiceClientpublic String getLastLicenseInfo()
getLastLicenseInfo in interface ServiceClientpublic Collection<CallNode> getLastCallTree()
getLastCallTree in interface ServiceClientpublic void setPassword(String password)
setPassword in interface ServiceClientpublic void setUserId(String userId)
setUserId in interface ServiceClientprotected 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