Package org.apache.ofbiz.ws.rs.util
Class RestApiUtil
java.lang.Object
org.apache.ofbiz.ws.rs.util.RestApiUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic javax.ws.rs.core.Response
static javax.ws.rs.core.Response.ResponseBuilder
errorBuilder
(int statusCode, String reasonPhrase, String message) extractParams
(javax.ws.rs.core.MultivaluedMap<String, String> multivaluedMap) getPathParameters
(String pathInfo) Extracts path parameters from resource pathInfostatic javax.ws.rs.core.Response
-
Method Details
-
success
-
error
-
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
Extracts path parameters from resource pathInfo- Parameters:
pathInfo
-- Returns:
-