Class DefaultRawHttpCodec

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

public class DefaultRawHttpCodec extends Object implements RawHttpCodec
  • Constructor Details

    • DefaultRawHttpCodec

      public DefaultRawHttpCodec()
  • Method Details

    • encode

      public String encode(HttpBRequest request)
      Description copied from interface: RawHttpCodec
      Encodes the given HttpBRequest object into its String representation according to the RFC standards. This encoded HTTP request can then be used for logging purposes, transmission over HTTP/VAU or any other use case where an encoded HTTP request is needed.
      Specified by:
      encode in interface RawHttpCodec
      Parameters:
      request - the HttpBRequest object holding the internal data of the HTTP request
      Returns:
      the encoded HTTP request as a plain string representation
    • encode

      public String encode(HttpBResponse response)
      Description copied from interface: RawHttpCodec
      Encodes the given HttpBResponse object into its String representation according to the RFC standards. This encoded HTTP response can then be used for logging purposes, transmission over HTTP/VAU or any other use case where an encoded HTTP response is needed.
      Specified by:
      encode in interface RawHttpCodec
      Parameters:
      response - the HttpBResponse object holding the internal data of the HTTP response
      Returns:
      the encoded HTTP response as a plain string representation
    • decodeResponse

      public HttpBResponse decodeResponse(String rawResponse)
      Description copied from interface: RawHttpCodec
      Decodes a raw HTTP response string into an HttpBResponse object.
      Specified by:
      decodeResponse in interface RawHttpCodec
      Parameters:
      rawResponse - the raw HTTP response string
      Returns:
      the decoded HttpBResponse object
    • decodeRequest

      public HttpBRequest decodeRequest(String rawRequest)
      Specified by:
      decodeRequest in interface RawHttpCodec