public class FileConcatenationHandler extends Object implements javax.ws.rs.ext.MessageBodyWriter<FileConcatenation>
Constructor and Description |
---|
FileConcatenationHandler() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(FileConcatenation fc,
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) |
void |
setMaxChunkSize(int maxChunkSize) |
void |
writeTo(FileConcatenation fc,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public void setMaxChunkSize(int maxChunkSize)
maxChunkSize
- How much to pull from the worker in one read.public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<FileConcatenation>
public long getSize(FileConcatenation fc, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<FileConcatenation>
public void writeTo(FileConcatenation fc, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<FileConcatenation>
IOException
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.