juzu
Class Response.Status
java.lang.Object
juzu.Response
juzu.Response.Status
- Direct Known Subclasses:
- Response.Body
- Enclosing class:
- Response
public static class Response.Status
- extends Response
| Methods inherited from class juzu.Response |
content, content, content, content, content, error, error, getProperties, notFound, notFound, notFound, notFound, notFound, ok, ok, ok, ok, ok, redirect, status |
Response.Status
public Response.Status(int code)
Response.Status
public Response.Status(int code,
PropertyMap properties)
getCode
public final int getCode()
body
public Response.Body body(Streamable s)
body
public Response.Body body(ChunkBuffer s)
body
public Response.Body body(CharSequence s)
body
public Response.Body body(byte[] s)
body
public Response.Body body(InputStream s)
content
public Response.Content content(Streamable s)
content
public Response.Content content(CharSequence s)
content
public Response.Content content(byte[] s)
content
public Response.Content content(InputStream s)
withHeader
public Response.Status withHeader(String name,
String... value)
- Overrides:
withHeader in class Response
withNo
public Response.Status withNo(PropertyType<Boolean> propertyType)
throws NullPointerException
- Description copied from class:
Response
- Set a boolean property to false.
- Overrides:
withNo in class Response
- Parameters:
propertyType - the property type
- Throws:
NullPointerException - if the property type is null
with
public Response.Status with(PropertyType<Boolean> propertyType)
throws NullPointerException
- Description copied from class:
Response
- Set a boolean property to true.
- Overrides:
with in class Response
- Parameters:
propertyType - the property type
- Throws:
NullPointerException - if the property type is null
without
public <T> Response.Status without(PropertyType<T> propertyType)
throws NullPointerException
- Description copied from class:
Response
- Removes a property.
- Overrides:
without in class Response
- Parameters:
propertyType - the property type
- Throws:
NullPointerException - if the property type is null
with
public <T> Response.Status with(PropertyType<T> propertyType,
T propertyValue)
throws NullPointerException
- Description copied from class:
Response
- Set a property, if the value is null, the property is removed.
- Overrides:
with in class Response
- Parameters:
propertyType - the property typepropertyValue - the property value
- Throws:
NullPointerException - if the property type is null
streamable
public Streamable streamable()
Copyright © 2014 eXo Platform SAS. All rights reserved.