org.apache.clerezza.triaxrs
Interface WebRequest

All Superinterfaces:
org.apache.clerezza.jaxrs.extensions.HttpRequest, javax.ws.rs.core.Request
All Known Implementing Classes:
WebRequestImpl

public interface WebRequest
extends javax.ws.rs.core.Request, org.apache.clerezza.jaxrs.extensions.HttpRequest

This interface represents a request that can be handled by Triaxrs.

Author:
mir

Method Summary
 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.
 org.wymiwyg.wrhapi.Request getWrhapiRequest()
          Returns the wrhapi request which was given the the JaxRsHandle.handle method.
 
Methods inherited from interface javax.ws.rs.core.Request
evaluatePreconditions, evaluatePreconditions, evaluatePreconditions, getMethod, selectVariant
 

Method Detail

getWrhapiRequest

org.wymiwyg.wrhapi.Request getWrhapiRequest()
Returns the wrhapi request which was given the the JaxRsHandle.handle method.

Returns:

getHeaders

javax.ws.rs.core.MultivaluedMap<String,String> getHeaders()
Returns a map that contains the header key-value pairs of the headers.

Returns:

getAcceptHeader

AcceptHeader getAcceptHeader()
Returns the chosen accept header of the request

Returns:
the accept header

getBodyObject

<T> T getBodyObject(Class<T> type,
                    Type genericType,
                    Annotation[] transformationAnnotation)
Returns the body of the request.

Type Parameters:
T -
Parameters:
type -
genericType -
transformationAnnotation -
Returns:


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