Package step.client
Class AbstractRemoteClient
- java.lang.Object
-
- step.client.AbstractRemoteClient
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
AbstractRemoteCRUDAccessorImpl
,ControllerServicesClient
,RemoteExecutionManager
,RemoteFunctionExecutionService
,RemoteFunctionManager
,RemotePlanRunner
,RemoteReportTreeAccessor
,RemoteResourceManager
,StagingRepositoryClient
,StagingRepositoryClient.StagingContext
public class AbstractRemoteClient extends Object implements Closeable
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.ws.rs.client.Client
client
protected Map<String,javax.ws.rs.core.NewCookie>
cookies
protected ControllerCredentials
credentials
-
Constructor Summary
Constructors Constructor Description AbstractRemoteClient()
AbstractRemoteClient(ControllerCredentials credentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected <T> T
executeRequest(Supplier<T> provider)
protected UnsupportedOperationException
notImplemented()
protected javax.ws.rs.client.Invocation.Builder
requestBuilder(String path)
protected javax.ws.rs.client.Invocation.Builder
requestBuilder(String path, Map<String,String> queryParams)
-
-
-
Field Detail
-
client
protected javax.ws.rs.client.Client client
-
credentials
protected ControllerCredentials credentials
-
-
Constructor Detail
-
AbstractRemoteClient
public AbstractRemoteClient(ControllerCredentials credentials)
-
AbstractRemoteClient
public AbstractRemoteClient()
-
-
Method Detail
-
requestBuilder
protected javax.ws.rs.client.Invocation.Builder requestBuilder(String path)
-
requestBuilder
protected javax.ws.rs.client.Invocation.Builder requestBuilder(String path, Map<String,String> queryParams)
-
executeRequest
protected <T> T executeRequest(Supplier<T> provider) throws ControllerClientException
- Throws:
ControllerClientException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
notImplemented
protected UnsupportedOperationException notImplemented()
-
-