org.apache.clerezza.triaxrs
Class WebRequestImpl

java.lang.Object
  extended by org.apache.clerezza.triaxrs.WebRequestImpl
All Implemented Interfaces:
javax.ws.rs.core.Request, org.apache.clerezza.jaxrs.extensions.HttpRequest, WebRequest

public class WebRequestImpl
extends Object
implements WebRequest

Wrapps a wrhapi-request and returns the parsed body.

Author:
reto

Method Summary
 javax.ws.rs.core.Response.ResponseBuilder evaluatePreconditions(Date arg0)
           
 javax.ws.rs.core.Response.ResponseBuilder evaluatePreconditions(Date arg0, javax.ws.rs.core.EntityTag arg1)
           
 javax.ws.rs.core.Response.ResponseBuilder evaluatePreconditions(javax.ws.rs.core.EntityTag arg0)
           
 AcceptHeader getAcceptHeader()
          Returns the chosen accept header of the request
<T> T
getBodyObject(Class<T> type, Type genericType, Annotation[] transformationAnnotation)
          Returns the body of the request.
 javax.ws.rs.core.MultivaluedMap<String,String> getHeaders()
          Returns a map that contains the header key-value pairs of the headers.
 String getMethod()
           
 org.wymiwyg.wrhapi.Request getWrhapiRequest()
          Returns the wrhapi request which was given the the JaxRsHandle.handle method.
 javax.ws.rs.core.Variant selectVariant(List<javax.ws.rs.core.Variant> arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getWrhapiRequest

public org.wymiwyg.wrhapi.Request getWrhapiRequest()
Description copied from interface: WebRequest
Returns the wrhapi request which was given the the JaxRsHandle.handle method.

Specified by:
getWrhapiRequest in interface WebRequest
Returns:

getHeaders

public javax.ws.rs.core.MultivaluedMap<String,String> getHeaders()
Description copied from interface: WebRequest
Returns a map that contains the header key-value pairs of the headers.

Specified by:
getHeaders in interface WebRequest
Returns:

getAcceptHeader

public AcceptHeader getAcceptHeader()
Description copied from interface: WebRequest
Returns the chosen accept header of the request

Specified by:
getAcceptHeader in interface WebRequest
Returns:
the accept header

getBodyObject

public <T> T getBodyObject(Class<T> type,
                           Type genericType,
                           Annotation[] transformationAnnotation)
Description copied from interface: WebRequest
Returns the body of the request.

Specified by:
getBodyObject in interface WebRequest
Returns:

evaluatePreconditions

public javax.ws.rs.core.Response.ResponseBuilder evaluatePreconditions(javax.ws.rs.core.EntityTag arg0)
Specified by:
evaluatePreconditions in interface javax.ws.rs.core.Request

evaluatePreconditions

public javax.ws.rs.core.Response.ResponseBuilder evaluatePreconditions(Date arg0)
Specified by:
evaluatePreconditions in interface javax.ws.rs.core.Request

evaluatePreconditions

public javax.ws.rs.core.Response.ResponseBuilder evaluatePreconditions(Date arg0,
                                                                       javax.ws.rs.core.EntityTag arg1)
Specified by:
evaluatePreconditions in interface javax.ws.rs.core.Request

getMethod

public String getMethod()
Specified by:
getMethod in interface javax.ws.rs.core.Request

selectVariant

public javax.ws.rs.core.Variant selectVariant(List<javax.ws.rs.core.Variant> arg0)
                                       throws IllegalArgumentException
Specified by:
selectVariant in interface javax.ws.rs.core.Request
Throws:
IllegalArgumentException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.