@Produces(value="text/html") @Provider public abstract class AbstractResponseViewProvider extends AbstractConfigurableProvider implements javax.ws.rs.ext.MessageBodyWriter<Object>
BUNDLE, LOG
Constructor and Description |
---|
AbstractResponseViewProvider() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
classResourceSupported(Class<?> type) |
protected String |
doGetClassResourceName(Class<?> type) |
protected String |
getBeanName(Object bean) |
protected String |
getClassResourceName(Class<?> type) |
protected String |
getDefaultLocationPrefix() |
protected String |
getDefaultResourceExtension() |
MessageContext |
getMessageContext() |
protected String |
getPathFromMessageContext() |
protected String |
getRequestPath() |
protected String |
getResourcePath(Class<?> cls,
Object o) |
long |
getSize(Object t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mt) |
protected void |
handleInternalViewRenderingException(Throwable exception) |
protected void |
handleViewRenderingException(String viewName,
Throwable exception)
By default we'll try to forward to the error handler.
|
boolean |
isLogRedirects() |
boolean |
isUseClassNames() |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mt) |
protected abstract boolean |
resourceAvailable(String resourceName) |
void |
setBeanName(String beanName) |
void |
setBeanNames(Map<String,String> beanNames) |
void |
setClassResources(Map<String,String> resources) |
void |
setEnumResources(Map<? extends Enum<?>,String> enumResources) |
void |
setErrorView(String errorView) |
void |
setLocationPrefix(String locationPrefix) |
void |
setLogRedirects(boolean logRedirects) |
void |
setMessageContext(MessageContext context) |
void |
setResourceExtension(String resourceExtension) |
void |
setResourcePath(String resourcePath) |
void |
setResourcePaths(Map<String,String> resourcePaths) |
void |
setStrictPathCheck(boolean use) |
void |
setUseClassNames(boolean use) |
getBus, getConsumeMediaTypes, getEnableBuffering, getEnableStreaming, getProduceMediaTypes, init, isPayloadEmpty, isPayloadEmpty, reportEmptyContentLength, setBus, setConsumeMediaTypes, setEnableBuffering, setEnableStreaming, setProduceMediaTypes
@Context public void setMessageContext(MessageContext context)
public MessageContext getMessageContext()
public void setUseClassNames(boolean use)
public boolean isUseClassNames()
public void setStrictPathCheck(boolean use)
public void setBeanName(String beanName)
public void setResourcePath(String resourcePath)
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 void setLocationPrefix(String locationPrefix)
public void setResourceExtension(String resourceExtension)
public void setErrorView(String errorView)
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<Object>
protected boolean classResourceSupported(Class<?> type)
protected String getPathFromMessageContext()
protected String getRequestPath()
protected void handleViewRenderingException(String viewName, Throwable exception)
viewName
- name of the view that produced the rendering errorexception
- rendering errorprotected void handleInternalViewRenderingException(Throwable exception)
protected String getDefaultLocationPrefix()
protected String getDefaultResourceExtension()
protected abstract boolean resourceAvailable(String resourceName)
public boolean isLogRedirects()
public void setLogRedirects(boolean logRedirects)
Apache CXF