public interface HttpResponseFactory
HttpResponse
objects.Modifier and Type | Method and Description |
---|---|
HttpResponse |
newHttpResponse(ProtocolVersion ver,
int status,
HttpContext context)
Creates a new response from status line elements.
|
HttpResponse |
newHttpResponse(StatusLine statusline,
HttpContext context)
Creates a new response from a status line.
|
HttpResponse newHttpResponse(ProtocolVersion ver, int status, HttpContext context)
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, or
null
to use the default localeHttpResponse newHttpResponse(StatusLine statusline, HttpContext context)
statusline
- the status linecontext
- the context from which to determine the locale
for looking up a reason phrase if the status code
is updated, or
null
to use the default localeCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.