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