Package org.apache.http
Interface HttpResponseFactory
- 
- All Known Implementing Classes:
 DefaultHttpResponseFactory
public interface HttpResponseFactoryA factory forHttpResponseobjects.- Since:
 - 4.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpResponsenewHttpResponse(ProtocolVersion ver, int status, HttpContext context)Creates a new response from status line elements.HttpResponsenewHttpResponse(StatusLine statusline, HttpContext context)Creates a new response from a status line. 
 - 
 
- 
- 
Method Detail
- 
newHttpResponse
HttpResponse newHttpResponse(ProtocolVersion ver, int status, HttpContext context)
Creates a new response from status line elements.- Parameters:
 ver- the protocol versionstatus- the status codecontext- the context from which to determine the locale for looking up a reason phrase to the status code, ornullto use the default locale- Returns:
 - the new response with an initialized status line
 
 
- 
newHttpResponse
HttpResponse newHttpResponse(StatusLine statusline, HttpContext context)
Creates a new response from a status line.- Parameters:
 statusline- the status linecontext- the context from which to determine the locale for looking up a reason phrase if the status code is updated, ornullto use the default locale- Returns:
 - the new response with the argument status line
 
 
 - 
 
 -