Package google.registry.request
Class ResponseImpl
java.lang.Object
google.registry.request.ResponseImpl
- All Implemented Interfaces:
Response
HTTP response object.
-
Constructor Summary
-
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.
-
Constructor Details
-
ResponseImpl
@Inject public ResponseImpl(jakarta.servlet.http.HttpServletResponse rsp)
-
-
Method Details
-
sendRedirect
- Specified by:
sendRedirect
in interfaceResponse
- Throws:
IOException
-
setStatus
public void setStatus(int status) Description copied from interface:Response
Sets the HTTP status code. -
setContentType
public void setContentType(com.google.common.net.MediaType contentType) Description copied from interface:Response
Sets the HTTP Content-Type and possibly encoding.- Specified by:
setContentType
in interfaceResponse
-
setPayload
Description copied from interface:Response
Writes the HTTP payload.- Specified by:
setPayload
in interfaceResponse
-
setHeader
Description copied from interface:Response
Writes an HTTP header to the response. -
setDateHeader
Description copied from interface:Response
Writes an HTTP header with a timestamp value.- Specified by:
setDateHeader
in interfaceResponse
- See Also:
-
addCookie
public void addCookie(jakarta.servlet.http.Cookie cookie) Description copied from interface:Response
Adds a cookie to the response -
getWriter
- Specified by:
getWriter
in interfaceResponse
- Throws:
IOException
-