Class BusinessAdapterReader
java.lang.Object
org.nuxeo.ecm.automation.jaxrs.io.documents.BusinessAdapterReader
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<BusinessAdapter>
@Provider
public class BusinessAdapterReader
extends Object
implements javax.ws.rs.ext.MessageBodyReader<BusinessAdapter>
JAX-RS Message body reeader to decode BusinessAdapter
- Since:
- 5.7.2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) readFrom
(Class<BusinessAdapter> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3, javax.ws.rs.core.MultivaluedMap<String, String> headers, InputStream in) readRequest
(InputStream in, javax.ws.rs.core.MultivaluedMap<String, String> headers) readRequest
(String content, javax.ws.rs.core.MultivaluedMap<String, String> headers) readRequest0
(String content, javax.ws.rs.core.MultivaluedMap<String, String> headers)
-
Field Details
-
request
@Context protected javax.servlet.http.HttpServletRequest request
-
-
Constructor Details
-
BusinessAdapterReader
public BusinessAdapterReader()
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
isReadable
in interfacejavax.ws.rs.ext.MessageBodyReader<BusinessAdapter>
-
readFrom
public BusinessAdapter readFrom(Class<BusinessAdapter> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3, javax.ws.rs.core.MultivaluedMap<String, String> headers, InputStream in) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<BusinessAdapter>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
readRequest
public BusinessAdapter readRequest(InputStream in, javax.ws.rs.core.MultivaluedMap<String, String> headers) throws IOException, javax.ws.rs.WebApplicationException- Throws:
IOException
javax.ws.rs.WebApplicationException
-
readRequest
public BusinessAdapter readRequest(String content, javax.ws.rs.core.MultivaluedMap<String, String> headers) throws javax.ws.rs.WebApplicationException- Throws:
javax.ws.rs.WebApplicationException
-
readRequest0
public BusinessAdapter readRequest0(String content, javax.ws.rs.core.MultivaluedMap<String, String> headers) throws IOException- Throws:
IOException
-