@Provider
@Consumes(value="application/octet-stream")
@Produces(value="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 and Description |
|---|
PKIRESTProvider() |
| Modifier and Type | Method and 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) |
public boolean isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.StreamingOutput>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
readFrom in interface javax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.StreamingOutput>java.io.IOExceptionjavax.ws.rs.WebApplicationExceptionpublic 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)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>public boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>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
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<javax.ws.rs.core.StreamingOutput>java.io.IOExceptionjavax.ws.rs.WebApplicationException