Class RestApiUtil

java.lang.Object
org.apache.ofbiz.ws.rs.util.RestApiUtil

public final class RestApiUtil extends Object
  • Method Details

    • success

      public static javax.ws.rs.core.Response success(String message, Object data)
    • error

      public static javax.ws.rs.core.Response error(int statusCode, String reasonPhrase, String message)
    • errorBuilder

      public static javax.ws.rs.core.Response.ResponseBuilder errorBuilder(int statusCode, String reasonPhrase, String message)
      Parameters:
      message -
      Returns:
    • extractParams

      public static Map<String,Object> extractParams(javax.ws.rs.core.MultivaluedMap<String,String> multivaluedMap)
      Parameters:
      multivaluedMap -
      Returns:
    • getPathParameters

      public static List<String> getPathParameters(String pathInfo)
      Extracts path parameters from resource pathInfo
      Parameters:
      pathInfo -
      Returns: