Class InnerHttp

java.lang.Object
de.gematik.bbriccs.rest.vau.InnerHttp
All Implemented Interfaces:
RawHttpCodec

public class InnerHttp extends Object implements RawHttpCodec
Utility-class for wrapping and unwrapping the inner-HTTP
  • Constructor Details

    • InnerHttp

      public InnerHttp()
  • Method Details

    • httpVersion

      public HttpClient.Version httpVersion()
      Specified by:
      httpVersion in interface RawHttpCodec
    • encode

      public String encode(HttpBRequest request)
      Description copied from interface: RawHttpCodec
      Encode the given command to a String representing an HTTP-Request according to RFC standards. This encoded "inner-HTTP Request" will then be encrypted VAU and transported as an "outer-HTTP Request"
      Specified by:
      encode in interface RawHttpCodec
      Parameters:
      request - holding the internal data of the "inner-HTTP Request"
      Returns:
      the VauRequest encoded as plain string representing the HTTP-Request according to RFC
      See Also:
    • decode

      public HttpBResponse decode(byte[] rawResponse)
      Specified by:
      decode in interface RawHttpCodec