Interface ResponseWriter
-
public interface ResponseWriter
WritesAuthenticationException
responses for different media types. Implementations should be thread-safe.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<com.google.common.net.MediaType>
handles()
Which media types can this handler handle.String
toString()
A short but useful description of this response writer.void
write(MessageContext context, AuthenticationException exception)
Write the details of the exception out, and set the content type of the response.
-
-
-
Method Detail
-
handles
Collection<com.google.common.net.MediaType> handles()
Which media types can this handler handle.- Returns:
- A list of media types.
-
write
void write(MessageContext context, AuthenticationException exception)
Write the details of the exception out, and set the content type of the response.- Parameters:
context
- TheMessageContext
containing the response to write the details to.exception
- TheAuthenticationException
to be written.
-
-