juzu
Class Response.Content<S extends Stream>
java.lang.Object
juzu.Response
juzu.Response.Content<S>
- Direct Known Subclasses:
- Response.Render
- Enclosing class:
- Response
public static class Response.Content<S extends Stream>
- extends Response
getKind
public Class<S> getKind()
getStreamable
public Streamable<S> getStreamable()
getMimeType
public String getMimeType()
withMimeType
public Response.Content<S> withMimeType(String mimeType)
withHeader
public Response.Content<S> withHeader(String name,
String... value)
- Overrides:
withHeader in class Response
getStatus
public Integer getStatus()
with
public <T> Response.Content 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
send
public void send(S stream)
throws IOException
- Send the response on the stream argument, Juzu invokes it when it needs to render the content object.
- Parameters:
stream - the stream for sending the response
- Throws:
IOException - any io exception
Copyright © 2013 eXo Platform SAS. All Rights Reserved.