@Produces(value="text/html") @Provider public class RequestDispatcherProvider extends AbstractConfigurableProvider implements javax.ws.rs.ext.MessageBodyWriter<Object>
Modifier and Type | Class and Description |
---|---|
protected static class |
RequestDispatcherProvider.HttpServletRequestFilter |
Constructor and Description |
---|
RequestDispatcherProvider() |
Modifier and Type | Method and Description |
---|---|
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 |
setEnumResources(Map<? extends Enum<?>,String> enumResources) |
void |
setIncludeResource(boolean includeResource) |
void |
setLocationPrefix(String locationPrefix) |
void |
setLogRedirects(String value) |
void |
setMessageContext(MessageContext context) |
protected void |
setRequestParameters(RequestDispatcherProvider.HttpServletRequestFilter request) |
void |
setResourceExtension(String resourceExtension) |
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 |
setStrictPathCheck(boolean use) |
void |
setUseClassNames(boolean use) |
void |
setUseCurrentServlet(boolean useCurrentServlet) |
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) |
getBus, getConsumeMediaTypes, getEnableBuffering, getEnableStreaming, getProduceMediaTypes, init, isPayloadEmpty, isPayloadEmpty, reportEmptyContentLength, setBus, setConsumeMediaTypes, setEnableBuffering, setEnableStreaming, setProduceMediaTypes
@Context public void setMessageContext(MessageContext context)
public void setStrictPathCheck(boolean use)
public void setUseClassNames(boolean use)
public long getSize(Object t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<Object>
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<Object>
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
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<Object>
IOException
protected javax.servlet.ServletContext getServletContext()
protected javax.servlet.RequestDispatcher getRequestDispatcher(javax.servlet.ServletContext sc, Class<?> clazz, String path)
public void setResourcePath(String resourcePath)
public void setServletContextPath(String servletContextPath)
public void setScope(String scope)
public void setBeanName(String beanName)
public void setLogRedirects(String value)
protected void setRequestParameters(RequestDispatcherProvider.HttpServletRequestFilter request)
protected void doSetRequestParameters(RequestDispatcherProvider.HttpServletRequestFilter req, javax.ws.rs.core.MultivaluedMap<String,String> params)
public void setDispatcherName(String name)
public void setServletPath(String path)
public void setSaveParametersAsAttributes(boolean saveParametersAsAttributes)
public void setUseCurrentServlet(boolean useCurrentServlet)
public void setIncludeResource(boolean includeResource)
public void setLocationPrefix(String locationPrefix)
public void setResourceExtension(String resourceExtension)
Apache CXF