Interface IRestRequestMessage
- All Superinterfaces:
IRestMessage
,Serializable
- All Known Implementing Classes:
RestRequestMessage
Interface describing a rest request message that can be parsed.
- Since:
- 9.0
- Author:
- Jon van Leuven, Arjan Pragt
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the accepted mime type of the request if specified.String[]
This method returns the argument names for this request message.String[]
getArgumentValues
(String name) This method returns the argument values for the requested name.This method returns the http method for this request message.getPath()
This method returns the path for this request message.boolean
hasArgument
(String name) This method returns if the request message contains an argument.boolean
This method returns whether the attributes should be validated after the rest request message is parsedMethods inherited from interface com.aquima.interactions.communication.IRestMessage
getBody, getContentType, getHeaderNames, getHeaderValues
-
Method Details
-
getAcceptType
String getAcceptType()This method returns the accepted mime type of the request if specified.- Returns:
- The accepted mime type, or null.
-
getHttpMethod
HttpMethodType getHttpMethod()This method returns the http method for this request message.- Returns:
- The request method, never null.
-
getPath
String getPath()This method returns the path for this request message.- Returns:
- The path, may be null.
-
getArgumentNames
String[] getArgumentNames()This method returns the argument names for this request message.- Returns:
- The argument names, never null, but may be an empty array.
-
getArgumentValues
This method returns the argument values for the requested name.- Parameters:
name
- the name of the argument- Returns:
- The argument values, may be null.
-
hasArgument
This method returns if the request message contains an argument.- Parameters:
name
- the name of the argument- Returns:
- If the request message contains the argument.
-
isValidated
boolean isValidated()This method returns whether the attributes should be validated after the rest request message is parsed- Returns:
- if the attributes should be validated after the rest request message is parsed
-