Skip to content

Commit

Permalink
[RESTEASY-2063] Add missing @Provider annotations
Browse files Browse the repository at this point in the history
Annotate provider classes:

 * StreamingOutputProvider
 * ByteArrayProvider
 * FileRangeWriter
  • Loading branch information
lyind authored and asoldano committed Nov 12, 2018
1 parent 5659481 commit ced6ddb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Expand Up @@ -10,6 +10,7 @@
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.ext.MessageBodyReader;
import javax.ws.rs.ext.MessageBodyWriter;
import javax.ws.rs.ext.Provider;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
Expand All @@ -20,6 +21,7 @@
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision: 1 $
*/
@Provider
@Produces("*/*")
@Consumes("*/*")
public class ByteArrayProvider implements MessageBodyReader<byte[]>, MessageBodyWriter<byte[]>
Expand Down
Expand Up @@ -4,6 +4,7 @@
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.ext.MessageBodyWriter;
import javax.ws.rs.ext.Provider;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStream;
Expand All @@ -14,6 +15,7 @@
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision: 1 $
*/
@Provider
public class FileRangeWriter implements MessageBodyWriter<FileRange>
{
@Override
Expand Down
Expand Up @@ -5,6 +5,7 @@
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.core.StreamingOutput;
import javax.ws.rs.ext.MessageBodyWriter;
import javax.ws.rs.ext.Provider;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.annotation.Annotation;
Expand All @@ -15,6 +16,7 @@
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision: 1 $
*/
@Provider
@Produces("*/*")
public class StreamingOutputProvider implements MessageBodyWriter<StreamingOutput>
{
Expand Down

0 comments on commit ced6ddb

Please sign in to comment.