Class SimpleRequest
java.lang.Object
com.atlassian.oai.validator.model.SimpleRequest
- All Implemented Interfaces:
Request
Simple immutable
Request implementation.
New instances should be constructed with a SimpleRequest.Builder.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder for constructing newSimpleRequestinstances.Nested classes/interfaces inherited from interface com.atlassian.oai.validator.model.Request
Request.Method -
Method Summary
Modifier and TypeMethodDescriptiongetBody()Get the collection of headers on this request.getHeaderValues(String name) Get the collection of header values for the header param with the given name.getPath()Get the collection of query parameter values for the query param with the given name.Methods 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.Request
getContentType, getHeaderValue
-
Method Details
-
getPath
-
getMethod
-
getBody
-
getRequestBody
- Specified by:
getRequestBodyin interfaceRequest- Returns:
- the request body
-
getQueryParameterValues
Description copied from interface:RequestGet the collection of query parameter values for the query param with the given name.- Specified by:
getQueryParameterValuesin interfaceRequest- Parameters:
name- The name of the parameter to retrieve. If not differently specified this name is case insensitive.- Returns:
- The query parameter values for that param; or empty list
-
getQueryParameters
- Specified by:
getQueryParametersin interfaceRequest- Returns:
- the collection of query parameter names present on this request
-
getHeaders
Description copied from interface:RequestGet the collection of headers on this request.Result will include key and all values (in the case of multiple headers with the same key)
- Specified by:
getHeadersin interfaceRequest- Returns:
- The map of
key->valuesfor the headers associated with this request.
-
getHeaderValues
Description copied from interface:RequestGet the collection of header values for the header param with the given name.- Specified by:
getHeaderValuesin interfaceRequest- Parameters:
name- The (case insensitive) name of the parameter to retrieve- Returns:
- The header values for that param; or empty list
-