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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSparkResponse(spark.Response response) Creates a interface response instance by wrapping the corresponding spark instance. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
- Specified by:
setBodyin interfacede.iip_ecosphere.platform.support.rest.Rest.Response
-
getBody
- Specified by:
getBodyin interfacede.iip_ecosphere.platform.support.rest.Rest.Response
-
setStatus
public void setStatus(int status) - Specified by:
setStatusin interfacede.iip_ecosphere.platform.support.rest.Rest.Response
-
setType
- Specified by:
setTypein interfacede.iip_ecosphere.platform.support.rest.Rest.Response
-