HttpServerResponseAdapter
protected static class BeelineServletFilter.HttpServerResponseAdapter extends Object implements HttpServerResponseAdapter
Modifier | Constructor | Description |
---|---|---|
protected |
HttpServerResponseAdapter(javax.servlet.http.HttpServletResponse response) |
Modifier and Type | Method | Description |
---|---|---|
Optional<String> |
getFirstHeader(String name) |
Return the first header value for the header name.
|
int |
getStatus() |
Return the HTTP status code.
|
protected HttpServerResponseAdapter(javax.servlet.http.HttpServletResponse response)
public int getStatus()
HttpServerResponseAdapter
getStatus
in interface HttpServerResponseAdapter
public Optional<String> getFirstHeader(String name)
HttpServerResponseAdapter
getFirstHeader
in interface HttpServerResponseAdapter
name
- the header nameOptional.empty()
if noneCopyright © 2019–2020 Honeycomb. All rights reserved.