juzu
Class Response.Body
java.lang.Object
juzu.Response
juzu.Response.Status
juzu.Response.Body
- Direct Known Subclasses:
- Response.Content
- Enclosing class:
- Response
public static class Response.Body
- extends Response.Status
| Methods inherited from class juzu.Response.Status |
body, body, body, body, body, content, content, content, content, getCode, streamable |
| 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 |
getData
public Streamable getData()
getMimeType
public String getMimeType()
getCharset
public Charset getCharset()
withCharset
public Response.Body withCharset(Charset charset)
withMimeType
public Response.Body withMimeType(String mimeType)
withHeader
public Response.Body withHeader(String name,
String... value)
- Overrides:
withHeader in class Response.Status
with
public <T> Response.Body 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.Status
- Parameters:
propertyType - the property typepropertyValue - the property value
- Throws:
NullPointerException - if the property type is null
without
public <T> Response.Body without(PropertyType<T> propertyType)
throws NullPointerException
- Description copied from class:
Response
- Removes a property.
- Overrides:
without in class Response.Status
- Parameters:
propertyType - the property type
- Throws:
NullPointerException - if the property type is null
with
public Response.Body with(PropertyType<Boolean> propertyType)
throws NullPointerException
- Description copied from class:
Response
- Set a boolean property to true.
- Overrides:
with in class Response.Status
- Parameters:
propertyType - the property type
- Throws:
NullPointerException - if the property type is null
withNo
public Response.Body withNo(PropertyType<Boolean> propertyType)
throws NullPointerException
- Description copied from class:
Response
- Set a boolean property to false.
- Overrides:
withNo in class Response.Status
- Parameters:
propertyType - the property type
- Throws:
NullPointerException - if the property type is null
Copyright © 2014 eXo Platform SAS. All rights reserved.