Class AbstractResponseViewProvider

    • Constructor Detail

      • AbstractResponseViewProvider

        public AbstractResponseViewProvider()
    • Method Detail

      • setMessageContext

        @Context
        public void setMessageContext​(MessageContext context)
      • setUseClassNames

        public void setUseClassNames​(boolean use)
      • isUseClassNames

        public boolean isUseClassNames()
      • setStrictPathCheck

        public void setStrictPathCheck​(boolean use)
      • setBeanNames

        public void setBeanNames​(Map<String,​String> beanNames)
      • setBeanName

        public void setBeanName​(String beanName)
      • setResourcePath

        public void setResourcePath​(String resourcePath)
      • setResourcePaths

        public void setResourcePaths​(Map<String,​String> resourcePaths)
      • 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>
      • setClassResources

        public void setClassResources​(Map<String,​String> resources)
      • setEnumResources

        public void setEnumResources​(Map<? extends Enum<?>,​String> enumResources)
      • setLocationPrefix

        public void setLocationPrefix​(String locationPrefix)
      • setResourceExtension

        public void setResourceExtension​(String resourceExtension)
      • setErrorView

        public void setErrorView​(String errorView)
      • 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>
      • classResourceSupported

        protected boolean classResourceSupported​(Class<?> type)
      • getPathFromMessageContext

        protected String getPathFromMessageContext()
      • getBeanName

        protected String getBeanName​(Object bean)
      • getRequestPath

        protected String getRequestPath()
      • getClassResourceName

        protected String getClassResourceName​(Class<?> type)
      • doGetClassResourceName

        protected String doGetClassResourceName​(Class<?> type)
      • handleViewRenderingException

        protected void handleViewRenderingException​(String viewName,
                                                    Throwable exception)
        By default we'll try to forward to the error handler. If no such handler has been set, or if there is an error during error handling, we throw an error and let CXF handle the internal error.
        Parameters:
        viewName - name of the view that produced the rendering error
        exception - rendering error
      • handleInternalViewRenderingException

        protected void handleInternalViewRenderingException​(Throwable exception)
      • getDefaultLocationPrefix

        protected String getDefaultLocationPrefix()
      • getDefaultResourceExtension

        protected String getDefaultResourceExtension()
      • resourceAvailable

        protected abstract boolean resourceAvailable​(String resourceName)
      • isLogRedirects

        public boolean isLogRedirects()
      • setLogRedirects

        public void setLogRedirects​(boolean logRedirects)