| org.apache.http.HttpResponseFactory
All known Subclasses: org.apache.http.impl.DefaultHttpResponseFactory,
HttpResponseFactory | public interface HttpResponseFactory (Code) | | A factory for
HttpResponse HttpResponse objects.
author: Oleg Kalnichevski version: $Revision: 573864 $ since: 4.0 |
newHttpResponse | HttpResponse newHttpResponse(ProtocolVersion ver, int status, HttpContext context)(Code) | | Creates a new response from status line elements.
Parameters: ver - the protocol version Parameters: status - the status code Parameters: context - the context from which to determine the localefor looking up a reason phrase to the status code, ornull to use the default locale the new response with an initialized status line |
newHttpResponse | HttpResponse newHttpResponse(StatusLine statusline, HttpContext context)(Code) | | Creates a new response from a status line.
Parameters: statusline - the status line Parameters: context - the context from which to determine the localefor looking up a reason phrase if the status codeis updated, ornull to use the default locale the new response with the argument status line |
|
|