Class ContextHandlingHttpClientTest.TestContextHandler

java.lang.Object
net.shibboleth.shared.httpclient.ContextHandlingHttpClientTest.TestContextHandler
All Implemented Interfaces:
HttpClientContextHandler
Enclosing class:
ContextHandlingHttpClientTest

private class ContextHandlingHttpClientTest.TestContextHandler extends Object implements HttpClientContextHandler
  • Field Details

  • Constructor Details

    • TestContextHandler

      public TestContextHandler(String instanceName)
    • TestContextHandler

      public TestContextHandler(String instanceName, Throwable beforeError, Throwable afterError)
  • Method Details

    • invokeBefore

      public void invokeBefore(@Nonnull org.apache.hc.client5.http.protocol.HttpClientContext context, @Nonnull org.apache.hc.core5.http.ClassicHttpRequest request) throws IOException
      Specified by:
      invokeBefore in interface HttpClientContextHandler
      Throws:
      IOException
    • invokeAfter

      public void invokeAfter(@Nonnull org.apache.hc.client5.http.protocol.HttpClientContext context, @Nonnull org.apache.hc.core5.http.ClassicHttpRequest request) throws IOException
      Specified by:
      invokeAfter in interface HttpClientContextHandler
      Throws:
      IOException
    • addValue

      private void addValue(org.apache.hc.client5.http.protocol.HttpClientContext context, String value)