Package google.registry.request
Interface Response
- All Known Implementing Classes:
ResponseImpl
public interface Response
HTTP request response object.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCookie
(jakarta.servlet.http.Cookie cookie) Adds a cookie to the responsevoid
sendRedirect
(String url) void
setContentType
(com.google.common.net.MediaType contentType) Sets the HTTP Content-Type and possibly encoding.void
setDateHeader
(String header, org.joda.time.DateTime timestamp) Writes an HTTP header with a timestamp value.void
Writes an HTTP header to the response.void
setPayload
(String payload) Writes the HTTP payload.void
setStatus
(int status) Sets the HTTP status code.
-
Method Details
-
sendRedirect
- Throws:
IOException
-
setStatus
void setStatus(int status) Sets the HTTP status code. -
setContentType
void setContentType(com.google.common.net.MediaType contentType) Sets the HTTP Content-Type and possibly encoding. -
setPayload
Writes the HTTP payload.- Throws:
IllegalStateException
- if you've already written the payload
-
setHeader
Writes an HTTP header to the response.- See Also:
-
setDateHeader
Writes an HTTP header with a timestamp value.- See Also:
-
addCookie
void addCookie(jakarta.servlet.http.Cookie cookie) Adds a cookie to the response- See Also:
-
getWriter
- Throws:
IOException
-