org.exist.atom.http
Class HttpResponseMessage
java.lang.Object
org.exist.atom.http.HttpResponseMessage
- All Implemented Interfaces:
- OutgoingMessage
public class HttpResponseMessage
- extends Object
- implements OutgoingMessage
- Author:
- R. Alexander Milowski
HttpResponseMessage
public HttpResponseMessage(HttpServletResponse response)
- Creates a new instance of HttpRequestMIMEMessage
setStatusCode
public void setStatusCode(int code)
- Specified by:
setStatusCode
in interface OutgoingMessage
setContentType
public void setContentType(String value)
- Specified by:
setContentType
in interface OutgoingMessage
setHeader
public void setHeader(String key,
String value)
- Specified by:
setHeader
in interface OutgoingMessage
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Specified by:
getOutputStream
in interface OutgoingMessage
- Throws:
IOException
getWriter
public Writer getWriter()
throws IOException
- Specified by:
getWriter
in interface OutgoingMessage
- Throws:
IOException
getResponse
public HttpServletResponse getResponse()
- Specified by:
getResponse
in interface OutgoingMessage
Copyright (C) Wolfgang Meier. All rights reserved.