Class ResourceBundleWriter
java.lang.Object
org.nuxeo.ecm.restapi.server.jaxrs.resource.wro.ResourceBundleWriter
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<ResourceBundleEndpoint.ResourceBundleDispatcher>
@Provider
public class ResourceBundleWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<ResourceBundleEndpoint.ResourceBundleDispatcher>
Writer for a resource bundle, used to dispatch jax-rs call internally to the wro servlet.
- Since:
- 7.3
-
Field Summary
Modifier and TypeFieldDescriptionprotected javax.servlet.http.HttpServletRequest
protected javax.servlet.http.HttpServletResponse
protected javax.servlet.ServletContext
protected javax.ws.rs.core.UriInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(ResourceBundleEndpoint.ResourceBundleDispatcher arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4) boolean
isWriteable
(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3) void
writeTo
(ResourceBundleEndpoint.ResourceBundleDispatcher arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4, javax.ws.rs.core.MultivaluedMap<String, Object> arg5, OutputStream arg6)
-
Field Details
-
uriInfo
@Context protected javax.ws.rs.core.UriInfo uriInfo -
servletContext
@Context protected javax.servlet.ServletContext servletContext -
request
@Context protected javax.servlet.http.HttpServletRequest request -
response
@Context protected javax.servlet.http.HttpServletResponse response
-
-
Constructor Details
-
ResourceBundleWriter
public ResourceBundleWriter()
-
-
Method Details
-
getSize
public long getSize(ResourceBundleEndpoint.ResourceBundleDispatcher arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4) - Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<ResourceBundleEndpoint.ResourceBundleDispatcher>
-
isWriteable
public boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3) - Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<ResourceBundleEndpoint.ResourceBundleDispatcher>
-
writeTo
public void writeTo(ResourceBundleEndpoint.ResourceBundleDispatcher arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4, javax.ws.rs.core.MultivaluedMap<String, Object> arg5, OutputStream arg6) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<ResourceBundleEndpoint.ResourceBundleDispatcher>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-