Class BridgeOptions
java.lang.Object
io.vertx.ext.bridge.BridgeOptions
- Direct Known Subclasses:
BridgeOptions, GrpcBridgeOptions, SockJSBridgeOptions
Specify the event bus bridge options.
- Author:
- Clement Escoffier
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofBridgeOptions, without any inbound and outbound permitted.BridgeOptions(JsonObject json) Creates a new instance ofBridgeOptionsfrom its JSON representation.BridgeOptions(BridgeOptions that) Creates a new instance ofBridgeOptionsby copying the content of anotherBridgeOptions -
Method Summary
Modifier and TypeMethodDescriptionaddInboundPermitted(PermittedOptions permitted) Adds an inbound permitted option to the currentBridgeOptions.addOutboundPermitted(PermittedOptions permitted) Adds an outbound permitted option to the currentBridgeOptions.setInboundPermitteds(List<PermittedOptions> inboundPermitted) Sets the list of inbound permitted options.setOutboundPermitteds(List<PermittedOptions> outboundPermitted) Sets the list of outbound permitted options.toJson()Serializes the currentBridgeOptionsto JSON.
-
Constructor Details
-
BridgeOptions
public BridgeOptions()Creates a new instance ofBridgeOptions, without any inbound and outbound permitted. -
BridgeOptions
Creates a new instance ofBridgeOptionsby copying the content of anotherBridgeOptions- Parameters:
that- theBridgeOptionsto copy.
-
BridgeOptions
Creates a new instance ofBridgeOptionsfrom its JSON representation. This method uses the generated converter.- Parameters:
json- the serializedBridgeOptions- See Also:
-
-
Method Details
-
toJson
Serializes the currentBridgeOptionsto JSON. This method uses the generated converter.- Returns:
- the serialized object
-
addInboundPermitted
Adds an inbound permitted option to the currentBridgeOptions.- Parameters:
permitted- the inbound permitted- Returns:
- the current
BridgeOptions.
-
getInboundPermitteds
- Returns:
- the list of inbound permitted options. Empty if none.
-
setInboundPermitteds
Sets the list of inbound permitted options.- Parameters:
inboundPermitted- the list to use, must not be}. This method use the direct list reference (and doesn't create a copy).invalid @link
{@link null- Returns:
- the current
BridgeOptions.
-
addOutboundPermitted
Adds an outbound permitted option to the currentBridgeOptions.- Parameters:
permitted- the outbound permitted- Returns:
- the current
BridgeOptions.
-
getOutboundPermitteds
- Returns:
- the list of outbound permitted options. Empty if none.
-
setOutboundPermitteds
Sets the list of outbound permitted options.- Parameters:
outboundPermitted- the list to use, must not be}. This method use the direct list reference (and doesn't create a copy).invalid @link
{@link null- Returns:
- the current
BridgeOptions.
-