Class SparkRest.SparkResponse

java.lang.Object
de.oktoflow.platform.support.rest.spark.SparkRest.SparkResponse
All Implemented Interfaces:
de.iip_ecosphere.platform.support.rest.Rest.Response
Enclosing class:
SparkRest

private static class SparkRest.SparkResponse extends Object implements de.iip_ecosphere.platform.support.rest.Rest.Response
Wraps a spark response.
Author:
Holger Eichelberger, SSE
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private spark.Response
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    SparkResponse(spark.Response response)
    Creates a interface response instance by wrapping the corresponding spark instance.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    void
    setStatus(int status)
     
    void
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface de.iip_ecosphere.platform.support.rest.Rest.Response

    setApplicationJsonType
  • Field Details

    • response

      private spark.Response response
  • Constructor Details

    • SparkResponse

      private SparkResponse(spark.Response response)
      Creates a interface response instance by wrapping the corresponding spark instance.
      Parameters:
      response - the spark instance
  • Method Details

    • setBody

      public void setBody(String body)
      Specified by:
      setBody in interface de.iip_ecosphere.platform.support.rest.Rest.Response
    • getBody

      public String getBody()
      Specified by:
      getBody in interface de.iip_ecosphere.platform.support.rest.Rest.Response
    • setStatus

      public void setStatus(int status)
      Specified by:
      setStatus in interface de.iip_ecosphere.platform.support.rest.Rest.Response
    • setType

      public void setType(String type)
      Specified by:
      setType in interface de.iip_ecosphere.platform.support.rest.Rest.Response