Class SimpleResponse
java.lang.Object
com.atlassian.oai.validator.model.SimpleResponse
- All Implemented Interfaces:
Response
Simple immutable
Response implementation-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder for constructing newSimpleResponseinstances. -
Method Summary
Modifier and TypeMethodDescriptiongetBody()getHeaderValues(String name) Get the collection of header values for the header param with the given name.intMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.oai.validator.model.Response
getContentType, getHeaderValue
-
Method Details
-
getStatus
public int getStatus() -
getBody
-
getResponseBody
- Specified by:
getResponseBodyin interfaceResponse- Returns:
- the response body
-
getHeaderValues
Description copied from interface:ResponseGet the collection of header values for the header param with the given name.- Specified by:
getHeaderValuesin interfaceResponse- Parameters:
name- The (case insensitive) name of the parameter to retrieve- Returns:
- The header values for that param; or empty list
-