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 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)
boolean
isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
boolean
isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
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)
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)
-
-
-
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:
isReadable
in 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:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.StreamingOutput>
- Throws:
java.io.IOException
javax.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:
getSize
in 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:
isWriteable
in 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:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>
- Throws:
java.io.IOException
javax.ws.rs.WebApplicationException
-
-