Class that groups the elements that uniquely identify a destination.
The elements are scheme, host, port, a
Origin. and a tag object that further distinguishes
destinations that have the same origin and protocol.
In general it is possible that, for the same origin, the server can
speak different protocols (for example, clear-text HTTP/1.1 and clear-text
HTTP/2), so the Origin. makes that distinction.
Furthermore, it may be desirable to have different destinations for
the same origin and protocol (for example, when using the PROXY protocol
in a reverse proxy server, you want to be able to map the client ip:port
to the destination tag, so that all the connections to the server
associated to that destination can specify the PROXY protocol bytes for
that particular client connection.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | Origin.Protocol
The representation of a network protocol. |
| Modifier and Type | Field and Description |
|---|---|
| private final Origin. | |
| private final Origin. | |
| private final String | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public Origin. | |
| public Origin. | |
| public String | |
| public Object | |
| public int | |
| public String |
| address | back to summary |
|---|---|
| private final Origin. | |
| protocol | back to summary |
|---|---|
| private final Origin. | |
| scheme | back to summary |
|---|---|
| private final String scheme | |
| tag | back to summary |
|---|---|
| private final Object tag | |
| Origin | back to summary |
|---|---|
| public Origin(String scheme, String host, int port) | |
| Origin | back to summary |
|---|---|
| public Origin(String scheme, String host, int port, Object tag) | |
| Origin | back to summary |
|---|---|
| public Origin(String scheme, String host, int port, Object tag, Origin. | |
| Origin | back to summary |
|---|---|
| public Origin(String scheme, Origin. | |
| Origin | back to summary |
|---|---|
| public Origin(String scheme, Origin. | |
| Origin | back to summary |
|---|---|
| public Origin(String scheme, Origin. | |
| asString | back to summary |
|---|---|
| public String asString() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAddress | back to summary |
|---|---|
| public Origin. | |
| getProtocol | back to summary |
|---|---|
| public Origin. | |
| getScheme | back to summary |
|---|---|
| public String getScheme() | |
| getTag | back to summary |
|---|---|
| public Object getTag() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final SocketAddress | |
| private final String | |
| private final int |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public String | |
| public int | |
| public SocketAddress | |
| public int | |
| public String |
| address | back to summary |
|---|---|
| private final SocketAddress address | |
| host | back to summary |
|---|---|
| private final String host | |
| port | back to summary |
|---|---|
| private final int port | |
| Address | back to summary |
|---|---|
| public Address(String host, int port) | |
| asString | back to summary |
|---|---|
| public String asString() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getHost | back to summary |
|---|---|
| public String getHost() | |
| getPort | back to summary |
|---|---|
| public int getPort() | |
| getSocketAddress | back to summary |
|---|---|
| public SocketAddress getSocketAddress() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
The representation of a network protocol.
A network protocol may have multiple protocol names
associated to it, for example ["h2", "h2-17", "h2-16"].
A Protocol is then rendered into a ClientConnectionFactory
chain, for example in
HttpClientTransportDynamic#newConnection(EndPoint, Map).
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public List | |
| public int | |
| public boolean | |
| public String |
| negotiate | back to summary |
|---|---|
| private final boolean negotiate | |
| protocols | back to summary |
|---|---|
| private final List<String> protocols | |
| Protocol | back to summary |
|---|---|
| public Protocol(List<String> protocols, boolean negotiate) Creates a Protocol with the given list of protocol names and whether it should negotiate the protocol. | |
| asString | back to summary |
|---|---|
| public String asString() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getProtocols | back to summary |
|---|---|
| public List | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isNegotiate | back to summary |
|---|---|
| public boolean isNegotiate() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |