public interface HttpResponseFactory<T extends HttpResponse>
HttpResponse objects.| 限定符和类型 | 方法和说明 |
|---|---|
T |
newHttpResponse(int status)
Creates a new response with the given code.
|
T |
newHttpResponse(int status,
String reasonPhrase)
Creates response message with the given code and reason phrase.
|
T newHttpResponse(int status, String reasonPhrase)
status - the status codereasonPhrase - the reason phraseT newHttpResponse(int status)
status - the status codeCopyright © 2023. All rights reserved.