Optional
instead.@Deprecated public class DurationParam extends AbstractParam<Duration>
400 Bad
Request
response. Supports all input formats the Duration
class supports.Constructor and Description |
---|
DurationParam(String input)
Deprecated.
|
DurationParam(String input,
String parameterName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected String |
errorMessage(Exception e)
Deprecated.
Given a string representation which was unable to be parsed and the exception thrown, produce
an error message to be sent to the client.
|
protected Duration |
parse(String input)
Deprecated.
Given a string representation, parse it and return an instance of the parameter type.
|
equals, error, generateErrorMessage, get, getErrorStatus, hashCode, mediaType, toString
protected String errorMessage(Exception e)
AbstractParam
errorMessage
in class AbstractParam<Duration>
e
- the exception thrown while parsing input
protected Duration parse(@Nullable String input) throws Exception
AbstractParam
parse
in class AbstractParam<Duration>
input
- the raw inputinput
, parsed as an instance of T
Exception
- if there is an error parsing the inputCopyright © 2011. All rights reserved.