Package google.registry.proxy
Class Protocol.FrontendProtocol
java.lang.Object
google.registry.proxy.Protocol.FrontendProtocol
- All Implemented Interfaces:
Protocol
- Enclosing interface:
Protocol
Connection parameters for a connection from the client to the proxy.
This protocol is associated to a NioSocketChannel
established by remote peer
connecting to the given port
that the proxy is listening on.
-
Nested Class Summary
Nested classes/interfaces inherited from interface google.registry.proxy.Protocol
Protocol.BackendProtocol, Protocol.FrontendProtocol
-
Field Summary
Fields inherited from interface google.registry.proxy.Protocol
PROTOCOL_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Whether thisFrontendProtocol
relays to aBackendProtocol
.abstract Protocol.BackendProtocol
TheProtocol.BackendProtocol
used to establish a relay channel and relay the traffic to.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface google.registry.proxy.Protocol
handlerProviders, name, port
-
Constructor Details
-
FrontendProtocol
public FrontendProtocol()
-
-
Method Details
-
relayProtocol
TheProtocol.BackendProtocol
used to establish a relay channel and relay the traffic to. Not required for health check protocol or HTTP(S) redirect. -
hasBackend
public abstract boolean hasBackend()Whether thisFrontendProtocol
relays to aBackendProtocol
. All proxied traffic must be represented by a protocol that has a backend.
-