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
Fields Modifier and Type Field Description protected javax.servlet.http.HttpServletRequest
request
protected javax.servlet.http.HttpServletResponse
response
protected javax.servlet.ServletContext
servletContext
protected javax.ws.rs.core.UriInfo
uriInfo
-
Constructor Summary
Constructors Constructor Description ResourceBundleWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
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 Detail
-
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 Detail
-
ResourceBundleWriter
public ResourceBundleWriter()
-
-
Method Detail
-
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
-
-