Interface WriteableResponse<T>
-
- All Known Implementing Classes:
AbstractResponse
,JSONResponse
,QueryableResponse
,RawResponse
,XMLResponse
public interface WriteableResponse<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.nio.charset.Charset
DEFAULT_CHARSET
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getContentCharset()
java.util.Optional<java.lang.String>
getContentType()
java.util.Optional<MediaType>
getMediaType()
void
write(java.io.OutputStream os)
-
-
-
Method Detail
-
write
void write(java.io.OutputStream os) throws java.io.IOException
- Throws:
java.io.IOException
-
getContentType
java.util.Optional<java.lang.String> getContentType()
-
getContentCharset
java.util.Optional<java.lang.String> getContentCharset()
-
getMediaType
java.util.Optional<MediaType> getMediaType()
-
-