public abstract class AbstractAuthResponseWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
static Comparator<org.springframework.http.MediaType> |
MEDIA_TYPE_COMPARATOR
This comparator uses the same logic for ordering media types as introduced in atlassian-authentication-plugin 4.2.0 -
ordering by quality first and ordering items with the same quality by their specificity, where a wildcard type is considered
less specific than a non-wildcard one and a wildcard subtype is considered less specific than a non-wildcard one.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAuthResponseWriter() |
| Modifier and Type | Method and Description |
|---|---|
static List<org.springframework.http.MediaType> |
getAcceptableMediaTypes(String header) |
org.springframework.http.MediaType |
getResponseMediaType(javax.servlet.http.HttpServletRequest request)
Returns
MediaType to be used for creating response for the given request. |
protected abstract String |
getResponseMessage() |
void |
write(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public static final Comparator<org.springframework.http.MediaType> MEDIA_TYPE_COMPARATOR
protected abstract String getResponseMessage()
public void write(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionpublic org.springframework.http.MediaType getResponseMediaType(javax.servlet.http.HttpServletRequest request)
MediaType to be used for creating response for the given request.request - request objectCopyright © 2023 Atlassian. All rights reserved.