Package com.atlassian.bamboo.rest.utils
Class BambooRestUtils
java.lang.Object
com.atlassian.bamboo.rest.utils.BambooRestUtils
Utilities for Bamboo REST resources.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull javax.ws.rs.core.MediaType
getResponseMediaType
(@NotNull javax.ws.rs.container.ContainerRequestContext request) ReturnsMediaType
to be used for creating response for the given HTTP request.static @NotNull javax.ws.rs.core.MediaType
getResponseMediaType
(@NotNull javax.ws.rs.container.ContainerRequestContext request, @NotNull List<javax.ws.rs.core.MediaType> acceptableMediaTypes) static @NotNull javax.ws.rs.core.MediaType
getResponseMediaType
(@NotNull javax.ws.rs.container.ContainerRequestContext request, @NotNull javax.ws.rs.core.HttpHeaders httpHeaders) ReturnsMediaType
to be used for creating response for the given request.
-
Method Details
-
getResponseMediaType
@NotNull public static @NotNull javax.ws.rs.core.MediaType getResponseMediaType(@NotNull @NotNull javax.ws.rs.container.ContainerRequestContext request) ReturnsMediaType
to be used for creating response for the given HTTP request.- Parameters:
request
- request object- Returns:
- media type to use for response
-
getResponseMediaType
@NotNull public static @NotNull javax.ws.rs.core.MediaType getResponseMediaType(@NotNull @NotNull javax.ws.rs.container.ContainerRequestContext request, @NotNull @NotNull javax.ws.rs.core.HttpHeaders httpHeaders) ReturnsMediaType
to be used for creating response for the given request.- Parameters:
request
- request objecthttpHeaders
- headers of the request- Returns:
- media type to use for response
-
getResponseMediaType
@NotNull public static @NotNull javax.ws.rs.core.MediaType getResponseMediaType(@NotNull @NotNull javax.ws.rs.container.ContainerRequestContext request, @NotNull @NotNull List<javax.ws.rs.core.MediaType> acceptableMediaTypes)
-