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