|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.rest.util.ResponseUtils
public class ResponseUtils
Builds response objects for REST service
Method Summary | |
---|---|
static javax.ws.rs.core.Response |
throwEx(ErrorCollection errorCollection)
Throws exceptions that corresponds to a ErrorCollection.Reason |
static void |
throwIfError(SimpleErrorCollection errorCollection)
Checks if the collection has an error and throws if necessary |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static javax.ws.rs.core.Response throwEx(ErrorCollection errorCollection)
errorCollection
- error list
public static void throwIfError(SimpleErrorCollection errorCollection)
errorCollection
- the error collection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |