Class FileBodyHandler

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyReader<File>, javax.ws.rs.ext.MessageBodyWriter<File>

    public class FileBodyHandler
    extends Object
    implements javax.ws.rs.ext.MessageBodyReader<File>, javax.ws.rs.ext.MessageBodyWriter<File>
    • Constructor Detail

      • FileBodyHandler

        public FileBodyHandler()
    • Method Detail

      • isReadable

        public boolean isReadable​(Class<?> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  javax.ws.rs.core.MediaType mediaType)
        Specified by:
        isReadable in interface javax.ws.rs.ext.MessageBodyReader<File>
      • isWriteable

        public boolean isWriteable​(Class<?> type,
                                   Type genericType,
                                   Annotation[] annotations,
                                   javax.ws.rs.core.MediaType mediaType)
        Specified by:
        isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<File>