@Provider public class UploadedFileProvider extends Object implements javax.ws.rs.ext.MessageBodyReader<UploadedFile>, DiskQuotaCheck
Modifier and Type | Field and Description |
---|---|
private Logger |
logger |
private javax.servlet.http.HttpServletRequest |
request |
Constructor and Description |
---|
UploadedFileProvider() |
Modifier and Type | Method and Description |
---|---|
void |
check(long fileSize) |
private long |
diskQuota(String username) |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
private UploadedFile |
parseMultiPart() |
UploadedFile |
readFrom(Class<UploadedFile> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
@Context private javax.servlet.http.HttpServletRequest request
public UploadedFileProvider()
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<UploadedFile>
public UploadedFile readFrom(Class<UploadedFile> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<UploadedFile>
IOException
javax.ws.rs.WebApplicationException
public void check(long fileSize)
check
in interface DiskQuotaCheck
private UploadedFile parseMultiPart()
Copyright © 2018. All Rights Reserved.