Interface Rest.Request
- Enclosing class:
Rest
public static interface Rest.Request
Request interface.
- Author:
- Holger Eichelberger, SSE
-
Method Details
-
getBody
String getBody()Returns the request body.- Returns:
- the request body sent by the client
-
getParam
Returns the value of a request parameter or, if supported, the value of a path variable.- Parameters:
name- the name of the parameter/variable, seeRest.RestServer.toPathVariable(String)- Returns:
- the value, null if there is no such parameter/variable
-
getContentType
String getContentType()Returns the content type.- Returns:
- the content type
-
getQueryString
String getQueryString()Returns the full query string.- Returns:
- the query string
-
getPath
String getPath()Returns the requested path.- Returns:
- the requested path
-