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