Class Response
- java.lang.Object
-
- com.djrapitops.plan.delivery.web.resolver.Response
-
public final class Response extends java.lang.Object
Represents a response that will be sent over HTTP.- See Also:
for MIME types that are commonly used.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponseBuilder
builder()
java.lang.String
getAsString()
byte[]
getBytes()
java.util.Optional<java.nio.charset.Charset>
getCharset()
int
getCode()
java.util.Map<java.lang.String,java.lang.String>
getHeaders()
boolean
isErrorResponse()
-
-
-
Method Detail
-
builder
public static ResponseBuilder builder()
-
getBytes
public byte[] getBytes()
-
getAsString
public java.lang.String getAsString()
-
getCode
public int getCode()
-
getHeaders
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
-
getCharset
public java.util.Optional<java.nio.charset.Charset> getCharset()
-
isErrorResponse
public boolean isErrorResponse()
-
-