org.eclipse.ecf.remoteservice.rest.client
Class AbstractRestClientService

java.lang.Object
  extended by org.eclipse.ecf.remoteservice.asyncproxy.AbstractAsyncProxyRemoteService
      extended by org.eclipse.ecf.remoteservice.AbstractRemoteService
          extended by org.eclipse.ecf.remoteservice.client.AbstractClientService
              extended by org.eclipse.ecf.remoteservice.rest.client.AbstractRestClientService
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, IRemoteService
Direct Known Subclasses:
RestClientService

public abstract class AbstractRestClientService
extends AbstractClientService


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.ecf.remoteservice.client.AbstractClientService
AbstractClientService.AsyncResult, AbstractClientService.UriRequest
 
Nested classes/interfaces inherited from class org.eclipse.ecf.remoteservice.AbstractRemoteService
AbstractRemoteService.AsyncArgs, AbstractRemoteService.ProxyClassLoader
 
Field Summary
 
Fields inherited from class org.eclipse.ecf.remoteservice.client.AbstractClientService
container, registration
 
Fields inherited from class org.eclipse.ecf.remoteservice.AbstractRemoteService
EMPTY_ARGS, futureExecutorService, futureExecutorServiceMaxThreads, iFutureExecutor
 
Constructor Summary
AbstractRestClientService(AbstractClientContainer container, RemoteServiceClientRegistration registration)
           
 
Method Summary
protected  void handleException(java.lang.String message, java.lang.Throwable e, int responseCode)
           
protected  void handleException(java.lang.String message, java.lang.Throwable e, int responseCode, byte[] responseBody)
           
protected  void logException(java.lang.String string, java.lang.Throwable e)
           
protected  void logWarning(java.lang.String string, java.lang.Throwable e)
           
protected  void trace(java.lang.String methodName, java.lang.String message)
           
 
Methods inherited from class org.eclipse.ecf.remoteservice.client.AbstractClientService
callAsync, callAsync, callAsync, callAsync, callSync, createUriRequest, fireAsync, getCallMethodNameForProxyInvoke, getCallParametersForProxyInvoke, getClientContainer, getInterfaceClassNames, getNextRequestID, getRegistration, getRemoteServiceID, getRemoteServiceReference, handleInvokeException, invokeRemoteCall, invokeSync, prepareEndpointAddress, prepareParameters, processResponse
 
Methods inherited from class org.eclipse.ecf.remoteservice.AbstractRemoteService
addAsyncProxyClasses, addRemoteServiceProxyToProxy, callAsync, callAsyncWithResult, callCompletableAsync, callFutureAsync, callFutureAsync, convertInterfaceNameToAsyncInterfaceName, createProxy, createProxy, createRemoteCall, dispose, findAsyncRemoteServiceProxyClass, findAsyncRemoteServiceProxyClass, getAsyncArgs, getAsyncInvokeMethodName, getAsyncRemoteCall, getCallTimeoutForProxyInvoke, getDefaultTimeout, getFutureExecutorService, getIFutureExecutor, getProxy, getProxy, getRemoteService, getRemoteServiceProxyCreator, handleInvokeSyncException, handleProxyException, invoke, invokeAsync, invokeObject, isAsync, loadInterfaceClass, loadInterfaceClass, setFutureExecutorService, setIFutureExecutor
 
Methods inherited from class org.eclipse.ecf.remoteservice.asyncproxy.AbstractAsyncProxyRemoteService
callFuture
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRestClientService

public AbstractRestClientService(AbstractClientContainer container,
                                 RemoteServiceClientRegistration registration)
Method Detail

trace

protected void trace(java.lang.String methodName,
                     java.lang.String message)

logException

protected void logException(java.lang.String string,
                            java.lang.Throwable e)

logWarning

protected void logWarning(java.lang.String string,
                          java.lang.Throwable e)
Overrides:
logWarning in class AbstractRemoteService

handleException

protected void handleException(java.lang.String message,
                               java.lang.Throwable e,
                               int responseCode,
                               byte[] responseBody)
                        throws RestException
Throws:
RestException

handleException

protected void handleException(java.lang.String message,
                               java.lang.Throwable e,
                               int responseCode)
                        throws RestException
Throws:
RestException