Class HttpClientDelegate

java.lang.Object
org.aksw.jena_sparql_api.sparql.ext.http.HttpClientDelegate
All Implemented Interfaces:
org.apache.http.client.HttpClient

public class HttpClientDelegate extends Object implements org.apache.http.client.HttpClient
Just an experimental wrapper that delegates all method calls to an unterlying HttpClient. I think HttpRequestInterceptor is what I am looking for though.
Author:
raven
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.http.client.HttpClient
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.http.HttpResponse
    execute(org.apache.http.client.methods.HttpUriRequest request)
     
    <T> T
    execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler)
     
    <T> T
    execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context)
     
    org.apache.http.HttpResponse
    execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.protocol.HttpContext context)
     
    org.apache.http.HttpResponse
    execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request)
     
    <T> T
    execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler)
     
    <T> T
    execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context)
     
    org.apache.http.HttpResponse
    execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
     
    org.apache.http.conn.ClientConnectionManager
     
    org.apache.http.params.HttpParams
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • delegate

      protected org.apache.http.client.HttpClient delegate
  • Constructor Details

    • HttpClientDelegate

      public HttpClientDelegate()
  • Method Details

    • getParams

      public org.apache.http.params.HttpParams getParams()
      Specified by:
      getParams in interface org.apache.http.client.HttpClient
    • getConnectionManager

      public org.apache.http.conn.ClientConnectionManager getConnectionManager()
      Specified by:
      getConnectionManager in interface org.apache.http.client.HttpClient
    • execute

      public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request) throws IOException, org.apache.http.client.ClientProtocolException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException
    • execute

      public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.protocol.HttpContext context) throws IOException, org.apache.http.client.ClientProtocolException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException
    • execute

      public org.apache.http.HttpResponse execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request) throws IOException, org.apache.http.client.ClientProtocolException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException
    • execute

      public org.apache.http.HttpResponse execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws IOException, org.apache.http.client.ClientProtocolException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException
    • execute

      public <T> T execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler) throws IOException, org.apache.http.client.ClientProtocolException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException
    • execute

      public <T> T execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context) throws IOException, org.apache.http.client.ClientProtocolException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException
    • execute

      public <T> T execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler) throws IOException, org.apache.http.client.ClientProtocolException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException
    • execute

      public <T> T execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context) throws IOException, org.apache.http.client.ClientProtocolException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
      org.apache.http.client.ClientProtocolException