Apache CXF API

org.apache.cxf.jaxrs.provider
Class RequestDispatcherProvider

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
      extended by org.apache.cxf.jaxrs.provider.RequestDispatcherProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<Object>

@Provider
public class RequestDispatcherProvider
extends AbstractConfigurableProvider
implements javax.ws.rs.ext.MessageBodyWriter<Object>


Nested Class Summary
protected static class RequestDispatcherProvider.HttpServletRequestFilter
           
 
Constructor Summary
RequestDispatcherProvider()
           
 
Method Summary
protected  void doSetRequestParameters(RequestDispatcherProvider.HttpServletRequestFilter req, javax.ws.rs.core.MultivaluedMap<String,String> params)
           
protected  String getBeanName(Object bean)
           
protected  javax.servlet.RequestDispatcher getRequestDispatcher(javax.servlet.ServletContext sc, Class<?> clazz, String path)
           
protected  javax.servlet.ServletContext getServletContext()
           
 long getSize(Object t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
           
 boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
           
 void setBeanName(String beanName)
           
 void setBeanNames(Map<String,String> beanNames)
           
 void setClassResources(Map<String,String> resources)
           
 void setDispatcherName(String name)
           
 void setLogRedirects(String value)
           
protected  void setRequestParameters(RequestDispatcherProvider.HttpServletRequestFilter request)
           
 void setResourcePath(String resourcePath)
           
 void setResourcePaths(Map<String,String> resourcePaths)
           
 void setSaveParametersAsAttributes(boolean saveParametersAsAttributes)
           
 void setScope(String scope)
           
 void setServletContextPath(String servletContextPath)
           
 void setServletPath(String path)
           
 void writeTo(Object o, Class<?> clazz, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType type, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream os)
           
 
Methods inherited from class org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
getBus, getConsumeMediaTypes, getEnableBuffering, getEnableStreaming, getProduceMediaTypes, init, setBus, setConsumeMediaTypes, setEnableBuffering, setEnableStreaming, setProduceMediaTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestDispatcherProvider

public RequestDispatcherProvider()
Method Detail

getSize

public long getSize(Object t,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mt)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Object>

isWriteable

public boolean isWriteable(Class<?> type,
                           Type genericType,
                           Annotation[] annotations,
                           javax.ws.rs.core.MediaType mt)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Object>

writeTo

public void writeTo(Object o,
                    Class<?> clazz,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType type,
                    javax.ws.rs.core.MultivaluedMap<String,Object> headers,
                    OutputStream os)
             throws IOException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Object>
Throws:
IOException

getServletContext

protected javax.servlet.ServletContext getServletContext()

getRequestDispatcher

protected javax.servlet.RequestDispatcher getRequestDispatcher(javax.servlet.ServletContext sc,
                                                               Class<?> clazz,
                                                               String path)

setResourcePath

public void setResourcePath(String resourcePath)

setServletContextPath

public void setServletContextPath(String servletContextPath)

setScope

public void setScope(String scope)

setBeanNames

public void setBeanNames(Map<String,String> beanNames)

setBeanName

public void setBeanName(String beanName)

setLogRedirects

public void setLogRedirects(String value)

getBeanName

protected String getBeanName(Object bean)

setRequestParameters

protected void setRequestParameters(RequestDispatcherProvider.HttpServletRequestFilter request)

doSetRequestParameters

protected void doSetRequestParameters(RequestDispatcherProvider.HttpServletRequestFilter req,
                                      javax.ws.rs.core.MultivaluedMap<String,String> params)

setDispatcherName

public void setDispatcherName(String name)

setServletPath

public void setServletPath(String path)

setResourcePaths

public void setResourcePaths(Map<String,String> resourcePaths)

setClassResources

public void setClassResources(Map<String,String> resources)

setSaveParametersAsAttributes

public void setSaveParametersAsAttributes(boolean saveParametersAsAttributes)

Apache CXF API

Apache CXF