Package com.netscape.certsrv.client
Class PKIRESTProvider
java.lang.Object
com.netscape.certsrv.client.PKIRESTProvider
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.StreamingOutput>
,javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
@Provider
@Consumes("application/octet-stream")
@Produces("application/octet-stream")
public class PKIRESTProvider
extends Object
implements javax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.StreamingOutput>, javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(javax.ws.rs.core.StreamingOutput out, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) boolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) javax.ws.rs.core.StreamingOutput
readFrom
(Class<javax.ws.rs.core.StreamingOutput> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) void
writeTo
(javax.ws.rs.core.StreamingOutput so, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
PKIRESTProvider
public PKIRESTProvider()
-
-
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<javax.ws.rs.core.StreamingOutput>
-
readFrom
public javax.ws.rs.core.StreamingOutput readFrom(Class<javax.ws.rs.core.StreamingOutput> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.StreamingOutput>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
getSize
public long getSize(javax.ws.rs.core.StreamingOutput out, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
-
writeTo
public void writeTo(javax.ws.rs.core.StreamingOutput so, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-