Class BambooRestUtils
- java.lang.Object
-
- com.atlassian.bamboo.rest.common.utils.BambooRestUtils
-
public class BambooRestUtils extends Object
Utilities for Bamboo REST resources.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull javax.ws.rs.core.MediaType
getResponseMediaType(@NotNull com.sun.jersey.api.core.HttpRequestContext 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.core.Request request, @NotNull javax.ws.rs.core.HttpHeaders httpHeaders)
ReturnsMediaType
to be used for creating response for the given request.
-
-
-
Method Detail
-
getResponseMediaType
@NotNull public static @NotNull javax.ws.rs.core.MediaType getResponseMediaType(@NotNull @NotNull com.sun.jersey.api.core.HttpRequestContext 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.core.Request 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
-
-