|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.rest.param.AbstractParam<V>
public abstract class AbstractParam<V>
An abstract class for JAX-RS parameter handlers, providing a single String constructor class for annotated QueryParams and PathParams.
Errors during parameter parsing result in a WebApplicationException with a 400 Bad Request status code.
http://codahale.com/what-makes-jersey-interesting-parameter-classes/| Constructor Summary | |
|---|---|
AbstractParam(String param)
|
|
| Method Summary | |
|---|---|
protected String |
getErrorMessage(String param,
Throwable e)
|
String |
getOriginalParam()
Get the original constructor parameter. |
V |
getValue()
Get the parsed value of the param. |
protected javax.ws.rs.core.Response |
onError(String param,
Throwable e)
Generates an HTTP 400 (Bad Request) |
protected abstract V |
parse(String param)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractParam(String param)
throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException| Method Detail |
|---|
public V getValue()
public String getOriginalParam()
public String toString()
toString in class Object
protected abstract V parse(String param)
throws Throwable
Throwable
protected javax.ws.rs.core.Response onError(String param,
Throwable e)
param - the original parametere - the original error
protected String getErrorMessage(String param,
Throwable e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||