T
- the type of RootServices to extract.public class GetRootServices<T extends RootServices> extends Object implements ResourceRequest<T>
RootServices
instance.Constructor and Description |
---|
GetRootServices(URI uri,
Class<T> type)
Creates a new instance to execute a GET on the specified root services location.
|
Modifier and Type | Method and Description |
---|---|
T |
call()
Executes the request and parse the response content in the specified format.
|
public GetRootServices(URI uri, Class<T> type)
uri
- the root services location.type
- the type of response to extract from the request execution (usually RootServices
, but can be extended).public T call()
ResourceRequest
ClientWebException
in case the HTTP response status is not 20x
.call
in interface ResourceRequest<T extends RootServices>
call
in interface Callable<T extends RootServices>