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
Fields Modifier and Type Field Description protected javax.servlet.http.HttpServletRequest
request
-
Constructor Summary
Constructors Constructor Description BusinessAdapterReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
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)
BusinessAdapter
readRequest(InputStream in, javax.ws.rs.core.MultivaluedMap<String,String> headers)
BusinessAdapter
readRequest(String content, javax.ws.rs.core.MultivaluedMap<String,String> headers)
BusinessAdapter
readRequest0(String content, javax.ws.rs.core.MultivaluedMap<String,String> headers)
-
-
-
Method Detail
-
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
-
-