|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.resteasy.specimpl.RequestImpl
public class RequestImpl
| Constructor Summary | |
|---|---|
RequestImpl(HttpRequest request)
|
|
| Method Summary | |
|---|---|
java.util.List<EntityTag> |
convertEtag(java.util.List<java.lang.String> tags)
|
Response.ResponseBuilder |
evaluatePreconditions()
Evaluate request preconditions for a resource that does not currently exist. |
Response.ResponseBuilder |
evaluatePreconditions(java.util.Date lastModified)
Evaluate request preconditions based on the passed in value. |
Response.ResponseBuilder |
evaluatePreconditions(java.util.Date lastModified,
EntityTag eTag)
Evaluate request preconditions based on the passed in value. |
Response.ResponseBuilder |
evaluatePreconditions(EntityTag eTag)
Evaluate request preconditions based on the passed in value. |
MultivaluedMap<java.lang.String,java.lang.String> |
getFormParameters()
|
java.lang.String |
getMethod()
Get the request method, e.g. |
Response.ResponseBuilder |
ifMatch(java.util.List<EntityTag> ifMatch,
EntityTag eTag)
|
Response.ResponseBuilder |
ifModifiedSince(java.lang.String strDate,
java.util.Date lastModified)
|
Response.ResponseBuilder |
ifNoneMatch(java.util.List<EntityTag> ifMatch,
EntityTag eTag)
|
Response.ResponseBuilder |
ifUnmodifiedSince(java.lang.String strDate,
java.util.Date lastModified)
|
Variant |
selectVariant(java.util.List<Variant> variants)
Select the representation variant that best matches the request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestImpl(HttpRequest request)
| Method Detail |
|---|
public java.lang.String getMethod()
Request
getMethod in interface RequestHttpMethodpublic MultivaluedMap<java.lang.String,java.lang.String> getFormParameters()
public Variant selectVariant(java.util.List<Variant> variants)
throws java.lang.IllegalArgumentException
Request
selectVariant in interface Requestvariants - a list of Variant that describe all of the
available representation variants.
java.lang.IllegalArgumentException - if variants is empty or nullVariant.VariantListBuilderpublic java.util.List<EntityTag> convertEtag(java.util.List<java.lang.String> tags)
public Response.ResponseBuilder ifMatch(java.util.List<EntityTag> ifMatch,
EntityTag eTag)
public Response.ResponseBuilder ifNoneMatch(java.util.List<EntityTag> ifMatch,
EntityTag eTag)
public Response.ResponseBuilder evaluatePreconditions(EntityTag eTag)
Request
evaluatePreconditions in interface RequesteTag - an ETag for the current state of the resource
public Response.ResponseBuilder ifModifiedSince(java.lang.String strDate,
java.util.Date lastModified)
public Response.ResponseBuilder ifUnmodifiedSince(java.lang.String strDate,
java.util.Date lastModified)
public Response.ResponseBuilder evaluatePreconditions(java.util.Date lastModified)
Request
evaluatePreconditions in interface RequestlastModified - a date that specifies the modification date of the resource
public Response.ResponseBuilder evaluatePreconditions(java.util.Date lastModified,
EntityTag eTag)
Request
evaluatePreconditions in interface RequestlastModified - a date that specifies the modification date of the resourceeTag - an ETag for the current state of the resource
public Response.ResponseBuilder evaluatePreconditions()
RequestNote that both preconditions If-None-Match: * and
If-None-Match: something will always be considered to
have been met and it is the applications responsibility
to enforce any additional method-specific semantics. E.g. a
PUT on a resource that does not exist might succeed whereas
a GET on a resource that does not exist would likely result
in a 404 response. It would be the responsibility of the application to
generate the 404 response.
evaluatePreconditions in interface Request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||