Constructor and Description |
---|
Response.ResponseBuilder() |
Modifier and Type | Method and Description |
---|---|
Response.ResponseBuilder |
body(byte[] body) |
Response.ResponseBuilder |
body(InputStream is) |
Response.ResponseBuilder |
body(String msg)
Supposes UTF8 encoding.
|
Response |
build() |
Response.ResponseBuilder |
contentType(String type) |
Response.ResponseBuilder |
header(Header header) |
Response.ResponseBuilder |
header(String k,
String v) |
static Response.ResponseBuilder |
newInstance() |
Response.ResponseBuilder |
status(int code,
String msg) |
public Response build()
public Response.ResponseBuilder status(int code, String msg)
public Response.ResponseBuilder body(String msg)
public Response.ResponseBuilder body(byte[] body)
public Response.ResponseBuilder body(InputStream is) throws IOException
IOException
public Response.ResponseBuilder header(Header header)
public Response.ResponseBuilder header(String k, String v)
public Response.ResponseBuilder contentType(String type)
public static Response.ResponseBuilder newInstance()
Copyright © 2012. All Rights Reserved.