Package org.restlet.engine.adapter
Class HttpResponse
java.lang.Object
org.restlet.Message
org.restlet.Response
org.restlet.engine.adapter.HttpResponse
Response wrapper for server HTTP calls.
- Author:
- Jerome Louvel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAdds a new header to the given request.Returns the low-level HTTP call.Returns the server-specific information.Methods inherited from class org.restlet.Response
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, toStringMethods inherited from class org.restlet.Message
bufferEntity, getAttributes, getCacheDirectives, getDate, getEntity, getEntityAsText, getHeaders, getOnError, getOnSent, getRecipientsInfo, getWarnings, isEntityAvailable, release, setAttributes, setCacheDirectives, setDate, setEntity, setEntity, setOnError, setOnSent, setRecipientsInfo, setWarnings
-
Constructor Details
-
HttpResponse
Constructor.- Parameters:
httpCall- The low-level HTTP server call.request- The associated high-level request.
-
-
Method Details
-
addHeader
Adds a new header to the given request.- Parameters:
response- The response to update.headerName- The header name to add.headerValue- The header value to add.
-
getHttpCall
Returns the low-level HTTP call.- Returns:
- The low-level HTTP call.
-
getServerInfo
Returns the server-specific information.- Overrides:
getServerInfoin classResponse- Returns:
- The server-specific information.
-