Class HttpRequestSender

java.lang.Object
org.kopi.ebics.client.HttpRequestSender

public class HttpRequestSender extends Object
A simple HTTP request sender and receiver. The send returns a HTTP code that should be analyzed before proceeding ebics request response parse.
  • Constructor Details

    • HttpRequestSender

      public HttpRequestSender(EbicsSession session)
      Constructs a new HttpRequestSender with a given ebics session.
      Parameters:
      session - the ebics session
  • Method Details

    • send

      public final int send(ContentFactory request) throws IOException
      Sends the request contained in the ContentFactory. The ContentFactory will deliver the request as an InputStream.
      Parameters:
      request - the ebics request
      Returns:
      the HTTP return code
      Throws:
      IOException
    • getResponseBody

      public ContentFactory getResponseBody()
      Returns the content factory of the response body
      Returns:
      the content factory of the response.