Class BambooRestUtils

java.lang.Object
com.atlassian.bamboo.rest.utils.BambooRestUtils

public class BambooRestUtils extends Object
Utilities for Bamboo REST resources.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull javax.ws.rs.core.MediaType
    getResponseMediaType(@NotNull javax.ws.rs.container.ContainerRequestContext request)
    Returns MediaType 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)
    Returns MediaType to be used for creating response for the given request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getResponseMediaType

      @NotNull public static @NotNull javax.ws.rs.core.MediaType getResponseMediaType(@NotNull @NotNull javax.ws.rs.container.ContainerRequestContext request)
      Returns MediaType 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)
      Returns MediaType to be used for creating response for the given request.
      Parameters:
      request - request object
      httpHeaders - 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)