public class ServerUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static javax.ws.rs.core.MediaType |
MEDIA_TYPE_SCIM_TYPE
The SCIM media type.
|
| Constructor and Description |
|---|
ServerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
encodeTemplateNames(String s)
Encodes a string with template parameters name present, specifically the
characters '{' and '}' will be percent-encoded.
|
static javax.ws.rs.core.Response.ResponseBuilder |
setAcceptableType(javax.ws.rs.core.Response.ResponseBuilder response,
List<javax.ws.rs.core.MediaType> acceptableTypes)
Sets the appropriate response content type while taking the accept header
into account.
|
public static final javax.ws.rs.core.MediaType MEDIA_TYPE_SCIM_TYPE
public ServerUtils()
public static javax.ws.rs.core.Response.ResponseBuilder setAcceptableType(javax.ws.rs.core.Response.ResponseBuilder response, List<javax.ws.rs.core.MediaType> acceptableTypes)
response - The response builder.acceptableTypes - The list of acceptable types from
Request.getAcceptableMediaTypes.public static String encodeTemplateNames(String s)
s - the string with zero or more template parameter namesCopyright © 2015–2020 Ping Identity Corporation. All rights reserved.