Class PseudoHttpRequest

java.lang.Object
org.springframework.http.client.AbstractClientHttpRequest
de.gematik.ncpeh.api.mock.http.PseudoHttpRequest
All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequest, org.springframework.http.HttpMessage, org.springframework.http.HttpOutputMessage, org.springframework.http.HttpRequest

public class PseudoHttpRequest extends org.springframework.http.client.AbstractClientHttpRequest
Lightweight implementation of an HTTP request with the only purpose to create testdata for the API operations in the form of content for SimulatorCommunicationData.requestSend() fields.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.http.client.ClientHttpResponse
    executeInternal(org.springframework.http.HttpHeaders headers)
     
    protected OutputStream
    getBodyInternal(org.springframework.http.HttpHeaders headers)
     
     

    Methods inherited from class org.springframework.http.client.AbstractClientHttpRequest

    assertNotExecuted, execute, getBody, getHeaders

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.http.HttpRequest

    getMethod, getURI
  • Constructor Details

    • PseudoHttpRequest

      public PseudoHttpRequest()
  • Method Details

    • getBodyInternal

      protected OutputStream getBodyInternal(org.springframework.http.HttpHeaders headers)
      Specified by:
      getBodyInternal in class org.springframework.http.client.AbstractClientHttpRequest
    • executeInternal

      protected org.springframework.http.client.ClientHttpResponse executeInternal(org.springframework.http.HttpHeaders headers)
      Specified by:
      executeInternal in class org.springframework.http.client.AbstractClientHttpRequest
    • getMethodValue

      public String getMethodValue()