Optional instead.@Deprecated public class InstantParam extends AbstractParam<Instant>
400 Bad Request response.| Constructor and Description |
|---|
InstantParam(String input)
Deprecated.
|
InstantParam(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 Instant |
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, toStringprotected String errorMessage(Exception e)
AbstractParamerrorMessage in class AbstractParam<Instant>e - the exception thrown while parsing inputprotected Instant parse(@Nullable String input) throws Exception
AbstractParamparse in class AbstractParam<Instant>input - the raw inputinput, parsed as an instance of TException - if there is an error parsing the inputCopyright © 2011. All rights reserved.