Package de.gematik.bbriccs.rest
Class DefaultRawHttpCodec
java.lang.Object
de.gematik.bbriccs.rest.DefaultRawHttpCodec
- All Implemented Interfaces:
RawHttpCodec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeRequest(String rawRequest) decodeResponse(String rawResponse) Decodes a raw HTTP response string into anHttpBResponseobject.encode(HttpBRequest request) Encodes the givenHttpBRequestobject into its String representation according to the RFC standards.encode(HttpBResponse response) Encodes the givenHttpBResponseobject into its String representation according to the RFC standards.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.gematik.bbriccs.rest.RawHttpCodec
decodeRequest, decodeRequestB64, decodeResponse, decodeResponseB64, encodeB64, encodeB64
-
Constructor Details
-
DefaultRawHttpCodec
public DefaultRawHttpCodec()
-
-
Method Details
-
encode
Description copied from interface:RawHttpCodecEncodes the givenHttpBRequestobject 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:
encodein interfaceRawHttpCodec- Parameters:
request- theHttpBRequestobject holding the internal data of the HTTP request- Returns:
- the encoded HTTP request as a plain string representation
-
encode
Description copied from interface:RawHttpCodecEncodes the givenHttpBResponseobject 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:
encodein interfaceRawHttpCodec- Parameters:
response- theHttpBResponseobject holding the internal data of the HTTP response- Returns:
- the encoded HTTP response as a plain string representation
-
decodeResponse
Description copied from interface:RawHttpCodecDecodes a raw HTTP response string into anHttpBResponseobject.- Specified by:
decodeResponsein interfaceRawHttpCodec- Parameters:
rawResponse- the raw HTTP response string- Returns:
- the decoded
HttpBResponseobject
-
decodeRequest
- Specified by:
decodeRequestin interfaceRawHttpCodec
-