public class HttpResponse extends Response
Constructor and Description |
---|
HttpResponse(ServerCall httpCall,
Request request)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
addHeader(Response response,
java.lang.String headerName,
java.lang.String headerValue)
Adds a new header to the given request.
|
ServerCall |
getHttpCall()
Returns the low-level HTTP call.
|
ServerInfo |
getServerInfo()
Returns the server-specific information.
|
abort, commit, flushBuffers, getAccessControlAllowCredentials, getAccessControlAllowHeaders, getAccessControlAllowMethods, getAccessControlAllowOrigin, getAccessControlExposeHeaders, getAccessControlMaxAge, getAge, getAllowedMethods, getAuthenticationInfo, getChallengeRequests, getCookieSettings, getCurrent, getDimensions, getLocationRef, getProxyChallengeRequests, getRequest, getRetryAfter, getStatus, isAutoCommitting, isCommitted, isConfidential, isFinal, isProvisional, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAccessControlAllowCredentials, setAccessControlAllowHeaders, setAccessControlAllowMethods, setAccessControlAllowOrigin, setAccessControlExposeHeaders, setAccessControlMaxAge, setAge, setAllowedMethods, setAuthenticationInfo, setAutoCommitting, setChallengeRequests, setCommitted, setCookieSettings, setCurrent, setDimensions, setLocationRef, setLocationRef, setProxyChallengeRequests, setRequest, setRetryAfter, setServerInfo, setStatus, setStatus, setStatus, setStatus, toString
bufferEntity, getAttributes, getCacheDirectives, getDate, getEntity, getEntityAsText, getHeaders, getOnError, getOnSent, getRecipientsInfo, getWarnings, isEntityAvailable, release, setAttributes, setCacheDirectives, setDate, setEntity, setEntity, setOnError, setOnSent, setRecipientsInfo, setWarnings
public HttpResponse(ServerCall httpCall, Request request)
httpCall
- The low-level HTTP server call.request
- The associated high-level request.public static void addHeader(Response response, java.lang.String headerName, java.lang.String headerValue)
response
- The response to update.headerName
- The header name to add.headerValue
- The header value to add.public ServerCall getHttpCall()
public ServerInfo getServerInfo()
getServerInfo
in class Response
Copyright © 2005-2024 Restlet.