Debian Codegraph @

resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/interception/MessageBodyWriterContext.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.OutputStream;
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 MessageBodyWriterContext
22 {
23 Object getEntity();
24
25 void setEntity(Object entity);
26
27 Class getType();
28
29 void setType(Class type);
30
31 Type getGenericType();
32
33 void setGenericType(Type genericType);
34
35 Annotation[] getAnnotations();
36
37 void setAnnotations(Annotation[] annotations);
38
39 MediaType getMediaType();
40
41 void setMediaType(MediaType mediaType);
42
43 MultivaluedMap<String, Object> getHeaders();
44
45 OutputStream getOutputStream();
46
47 public void setOutputStream(OutputStream os);
48
49 /**
50 * Allows you to pass values back and forth between interceptors
51 * On the server side, this is the HttpRequest attributes, on the client side, this is the ClientRequest/ClientResponse
52 * attributes.
53 *
54 * @return
55 */
56 Object getAttribute(String attribute);
57
58 void setAttribute(String name, Object value);
59
60 void removeAttribute(String name);
61
62 void proceed() throws IOException, WebApplicationException;
63 }