In package com.eden.orchid.api.server

@Accessors(
    chain=true,
    fluent=true)
public final class OrchidResponse extends Object

public final

Constructors

OrchidResponse(OrchidContext context) public

Parameters:

Methods

OrchidResponse json(JSONObject json) public

Parameters:
  • JSONObject json
OrchidResponse json(Map<K, V> json) public

Parameters:
  • Map json
OrchidResponse json(JSONArray json) public

Parameters:
  • JSONArray json
OrchidResponse json(Collection<E> json) public

Parameters:
  • Collection json
OrchidResponse contentStream(InputStream contentStream) public

Parameters:
  • InputStream contentStream
OrchidResponse contentStream(InputStream contentStream, long contentStreamLength) public

Parameters:
  • InputStream contentStream
  • contentStreamLength
OrchidResponse status(int status) public

Parameters:
  • status
OrchidResponse header(String header, String value) public

Parameters:
  • String header
  • String value
NanoHTTPD.Response getResponse() public