Interface ResourceRequest<T>

Type Parameters:
T - the type of response to extract from the request execution.
All Superinterfaces:
Callable<T>
All Known Implementing Classes:
com.sodius.oslc.core.process.internal.requests.AbstractLinkRequest, AbstractResourceRequest, AddGCDeliverableLink, AddLink, CreateProvisionalConsumerKey, CreateUserGroup, DeleteResource, DeleteUserGroup, ExecuteLinkIndexQuery, ExecuteQuery, ExecuteQuery, GetBaseline, GetCompact, GetComponent, GetConfiguration, GetDataGroupPermissions, GetDataGroups, GetGlobalConfigurationContribution, GetGlobalConfigurationFriend, GetGlobalConfigurationSelectionDialog, GetLocalConfigurationSelectionDialog, GetProxyResource, GetPublisher, GetResource, GetResourceDescriptor, GetResources, GetResourceShape, GetRootServices, GetServiceProvider, GetServiceProviderCatalog, GetStream, GetUserGroup, GetUserGroupMembers, GetUserGroups, PostResource, PutProxyResource, PutResource, QueryUsers, RemoveGCDeliverableLink, RemoveLink, UpdateDataGroupPermissions, UpdateResource, UpdateUserGroupMembers, ValidateConnection, ValidateFriend, WebAppResourceRequest

public interface ResourceRequest<T> extends Callable<T>

A REST request executes to read or modify a remote resource.

The contract is to throw a ClientWebException for any HTTP responses whose status is not 20x. If an exception is not expected in such case, clients are advised to use directly an instance of OslcClient to get access to the underlying response.

Since:
1.1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Executes the request and parse the response content in the specified format.
  • Method Details

    • call

      T call()
      Executes the request and parse the response content in the specified format. Throws a ClientWebException in case the HTTP response status is not 20x.
      Specified by:
      call in interface Callable<T>