Class HttpResponse


  • public class HttpResponse
    extends Object

    Provides access to the http response.

    Example:

    
     var startElement = BpmElement.processName("processUnderTest").name("start.ivp");
     var result = bpmClient.start().process(startElement).execute();
     assertThat(result.http().redirectLocation()).contains("customEndPage.html")
     
    Since:
    9.1
    API:
    This is a public API.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String content()
      Retruns the content of this http process execution.
      String redirectLocation()
      Returns the redirect location of this http process execution.
      javax.servlet.http.HttpServletResponse response()
      Provides access to the HttpServletResponse response of this process execution.
    • Method Detail

      • content

        public String content()
        Retruns the content of this http process execution.

        Example:

        
         var startElement = BpmElement.processName("processUnderTest").name("start.ivp");
         var result = bpmClient.start().process(startElement).usingHttp().execute();
         assertThat(result.http().content()).contains("Auto Dialog");
         
        Returns:
        http response content
        Throws:
        IllegalStateException - if not http response is available. This can be if you disabled the http request context
        See Also:
        HttpRequestBuilder.disable()
        API:
        This public API is available in Java.
      • redirectLocation

        public String redirectLocation()
        Returns the redirect location of this http process execution.

        Example:

        
         var startElement = BpmElement.processName("processUnderTest").name("start.ivp");
         var result = bpmClient.start().process(startElement).usingHttp().execute();
         assertThat(result.http().redirectLocation()).contains("customEndPage.html")
         
        Returns:
        redirect location
        Throws:
        IllegalStateException - if not http response is available. This can be if you disabled the http request context
        See Also:
        HttpRequestBuilder.disable()
        API:
        This public API is available in Java.
      • response

        public javax.servlet.http.HttpServletResponse response()
        Provides access to the HttpServletResponse response of this process execution.
        Returns:
        httpServletResponse
        Throws:
        IllegalStateException - if not http response is available. This can be if you disabled the http request context
        See Also:
        HttpRequestBuilder.disable()
        API:
        This public API is available in Java.