Interface IPartnerServiceClient

All Known Implementing Classes:
PartnerServiceClient

public interface IPartnerServiceClient
  • Method Summary

    Modifier and Type Method Description
    <T> void delete​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)
    Executes a DELETE operation against the partner service.
    <T> T get​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, Link link)
    Executes a GET operation against the partner service.
    <T> T get​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)
    Executes a GET operation against the partner service.
    <T> T get​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri, Collection<KeyValuePair<String,​String>> parameters)
    Executes a GET operation against the partner service.
    <T> T get​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri, Map<String,​String> headers, Collection<KeyValuePair<String,​String>> parameters)
    Executes a GET operation against the partner service.
    InputStream getFileContents​(IPartner rootPartnerOperations, String relativeUri, String acceptType)
    Executes a file content request against the partner service.
    <T> T head​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)
    Executes a HEAD operation against the partner service.
    <T,​ U> U patch​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content)
    Executes a PATCH operation against the partner service.
    <T,​ U> U post​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content)
    Executes a POST operation against the partner service.
    <T,​ U> U post​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content, Collection<KeyValuePair<String,​String>> parameters)
    Executes a POST operation against the partner service.
    <T,​ U> U put​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content)
    Executes a PUT operation against the partner service.
  • Method Details

    • get

      <T> T get​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, Link link)
      Executes a GET operation against the partner service.
      Type Parameters:
      T - The type of the response.
      Parameters:
      rootPartnerOperations - An instance of the partner operations.
      responseType - The type of object to be returned.
      link - A link object that represents the action for accessing the resource.
      Returns:
      The response from the GET operation.
    • get

      <T> T get​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)
      Executes a GET operation against the partner service.
      Type Parameters:
      T - The type of the response.
      Parameters:
      rootPartnerOperations - An instance of the partner operations.
      responseType - The type of object to be returned.
      relativeUri - The relative address of the request.
      Returns:
      The response from the GET operation.
    • get

      <T> T get​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri, Map<String,​String> headers, Collection<KeyValuePair<String,​String>> parameters)
      Executes a GET operation against the partner service.
      Type Parameters:
      T - The type of the response.
      Parameters:
      rootPartnerOperations - An instance of the partner operations.
      responseType - The type of object to be returned.
      relativeUri - The relative address of the request.
      headers - Headers to be added to the request.
      parameters - Parameters to be added to the request.
      Returns:
      The response from the GET operation.
    • get

      <T> T get​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri, Collection<KeyValuePair<String,​String>> parameters)
      Executes a GET operation against the partner service.
      Type Parameters:
      T - The type of the response.
      Parameters:
      rootPartnerOperations - An instance of the partner operations.
      responseType - The type of object to be returned.
      relativeUri - The relative address of the request.
      parameters - Parameters to be added to the request.
      Returns:
      The response from the GET operation.
    • getFileContents

      InputStream getFileContents​(IPartner rootPartnerOperations, String relativeUri, String acceptType)
      Executes a file content request against the partner service.
      Parameters:
      rootPartnerOperations - An instance of the partner operations.
      relativeUri - The relative address of the request.
      acceptType - The value for the accept type header.
      Returns:
      The response from the file content request.
    • head

      <T> T head​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)
      Executes a HEAD operation against the partner service.
      Type Parameters:
      T - The type to the response.
      Parameters:
      rootPartnerOperations - An instance of the partner operations.
      responseType - The type of object to be returned.
      relativeUri - The relative address of the request.
      Returns:
      The response from the HEAD operation.
    • patch

      <T,​ U> U patch​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content)
      Executes a PATCH operation against the partner service.
      Type Parameters:
      T - The type of the request.
      U - The type of the response.
      Parameters:
      rootPartnerOperations - An instance of the partner operations.
      responseType - The type of object to be returned.
      relativeUri - The relative address of the request.
      content - The content for the body of the request.
      Returns:
      The response from the PATCH operation.
    • post

      <T,​ U> U post​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content)
      Executes a POST operation against the partner service.
      Type Parameters:
      T - The type of the request.
      U - The type of the response.
      Parameters:
      rootPartnerOperations - An instance of the partner operations.
      responseType - The type of object to be returned.
      relativeUri - The relative address fo the request.
      content - The content for the body of the request.
      Returns:
      The response from the POST operation.
    • post

      <T,​ U> U post​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content, Collection<KeyValuePair<String,​String>> parameters)
      Executes a POST operation against the partner service.
      Type Parameters:
      T - The type of the request.
      U - The type of the response.
      Parameters:
      rootPartnerOperations - An instance of the partner operations.
      responseType - The type of object to be returned.
      relativeUri - The relative address fo the request.
      content - The content for the body of the request.
      parameters - Parameters to be added to the request.
      Returns:
      The response from the POST operation.
    • put

      <T,​ U> U put​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content)
      Executes a PUT operation against the partner service.
      Type Parameters:
      T - The type of the request.
      U - The type of the response.
      Parameters:
      rootPartnerOperations - An instance of the partner operations.
      responseType - The type of object to be returned.
      relativeUri - The relative address fo the request.
      content - The content for the body of the request.
      Returns:
      The response from the PUT operation.
    • delete

      <T> void delete​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)
      Executes a DELETE operation against the partner service.
      Type Parameters:
      T - The type of the response.
      Parameters:
      rootPartnerOperations - An instance of the partner operations.
      responseType - The type of object to be returned.
      relativeUri - The relative address fo the request.