Debian Codegraph @

resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/interception/MessageBodyReaderContext.java

raw symbols SCIP
1 package org.jboss.resteasy.spi.interception;
2
3 import javax.ws.rs.WebApplicationException;
4 import javax.ws.rs.core.MediaType;
5 import javax.ws.rs.core.MultivaluedMap;
6 import java.io.IOException;
7 import java.io.InputStream;
8 import java.lang.annotation.Annotation;
9 import java.lang.reflect.Type;
10
11 /**
12 * @author <a href="mailto:[email protected]">Bill Burke</a>
13 * @version $Revision: 1 $
14 *
15 * @deprecated The Resteasy interceptor facility introduced in release 2.x
16 * is replaced by the JAX-RS 2.0 compliant interceptor facility in release 3.0.x.
17 *
18 * @see jaxrs-api (https://jcp.org/en/jsr/detail?id=339)
19 */
20 @Deprecated
21 public interface MessageBodyReaderContext
22 {
23 Class getType();
24
25 void setType(Class type);
26
27 Type getGenericType();
28
29 void setGenericType(Type genericType);
30
31 Annotation[] getAnnotations();
32
33 void setAnnotations(Annotation[] annotations);
34
35 MediaType getMediaType();
36
37 void setMediaType(MediaType mediaType);
38
39 MultivaluedMap<String, String> getHeaders();
40
41 InputStream getInputStream();
42
43 void setInputStream(InputStream is);
44
45 /**
46 * Allows you to pass values back and forth between interceptors
47 * On the server side, this is the HttpRequest attributes, on the client side, this is the ClientRequest/ClientResponse
48 * attributes.
49 *
50 * @return
51 */
52 Object getAttribute(String attribute);
53
54 void setAttribute(String name, Object value);
55
56 void removeAttribute(String name);
57
58 Object proceed() throws IOException, WebApplicationException;
59 }