Package io.dropwizard.jersey.params
Class LongParam
- java.lang.Object
-
- io.dropwizard.jersey.params.AbstractParam<Long>
-
- io.dropwizard.jersey.params.LongParam
-
@Deprecated public class LongParam extends AbstractParam<Long>
Deprecated.As of release 2.0.0, will be removed in 3.0.0. Please useOptionalLong
instead.A parameter encapsulating long values. All non-decimal values will return a400 Bad Request
response.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected String
errorMessage(Exception e)
Deprecated.Given a string representation which was unable to be parsed and the exception thrown, produce an entity to be sent to the client.protected Long
parse(String input)
Deprecated.Given a string representation, parse it and return an instance of the parameter type.-
Methods inherited from class io.dropwizard.jersey.params.AbstractParam
equals, error, get, getErrorStatus, hashCode, mediaType, toString
-
-
-
-
Method Detail
-
errorMessage
protected String errorMessage(Exception e)
Deprecated.Description copied from class:AbstractParam
Given a string representation which was unable to be parsed and the exception thrown, produce an entity to be sent to the client.- Overrides:
errorMessage
in classAbstractParam<Long>
- Parameters:
e
- the exception thrown while parsinginput
- Returns:
- the error message to be sent the client
-
parse
protected Long parse(@Nullable String input)
Deprecated.Description copied from class:AbstractParam
Given a string representation, parse it and return an instance of the parameter type.- Specified by:
parse
in classAbstractParam<Long>
- Parameters:
input
- the raw input- Returns:
input
, parsed as an instance ofT
-
-