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 java.lang.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 Constructor Description PKIRESTProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(javax.ws.rs.core.StreamingOutput out, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)javax.ws.rs.core.StreamingOutputreadFrom(java.lang.Class<javax.ws.rs.core.StreamingOutput> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)voidwriteTo(javax.ws.rs.core.StreamingOutput so, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Specified by:
isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.StreamingOutput>
-
readFrom
public javax.ws.rs.core.StreamingOutput readFrom(java.lang.Class<javax.ws.rs.core.StreamingOutput> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream) throws java.io.IOException, javax.ws.rs.WebApplicationException- Specified by:
readFromin interfacejavax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.StreamingOutput>- Throws:
java.io.IOExceptionjavax.ws.rs.WebApplicationException
-
getSize
public long getSize(javax.ws.rs.core.StreamingOutput out, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
-
isWriteable
public boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
-
writeTo
public void writeTo(javax.ws.rs.core.StreamingOutput so, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream) throws java.io.IOException, javax.ws.rs.WebApplicationException- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>- Throws:
java.io.IOExceptionjavax.ws.rs.WebApplicationException
-
-