Class HttpProtocol
- java.lang.Object
-
- com.couchbase.client.core.io.netty.HttpProtocol
-
public class HttpProtocol extends Object
Helper methods that need to be used when dealing with the HTTP protocol.- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description HttpProtocol()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResponseStatus
decodeStatus(com.couchbase.client.core.deps.io.netty.handler.codec.http.HttpResponseStatus status)
Converts the http protocol status into its generic format.static String
remoteHttpHost(SocketAddress remoteAddress)
Calculates the remote host for caching so that it is set on each query request.
-
-
-
Method Detail
-
remoteHttpHost
public static String remoteHttpHost(SocketAddress remoteAddress)
Calculates the remote host for caching so that it is set on each query request.- Parameters:
remoteAddress
- the remote address.- Returns:
- the converted remote http host.
-
decodeStatus
public static ResponseStatus decodeStatus(com.couchbase.client.core.deps.io.netty.handler.codec.http.HttpResponseStatus status)
Converts the http protocol status into its generic format.- Parameters:
status
- the protocol status.- Returns:
- the response status.
-
-