public class SocketBindingGroup extends Object
The default socket-binding group is typically named standard-sockets
.
All bindings within a group may be universally offset to accommodate shifting an entire server up or down some set number of ports.
SocketBinding
,
OutboundSocketBinding
Constructor and Description |
---|
SocketBindingGroup(String name,
String defaultInterface,
String portOffsetExpression)
Create a new socket-binding group.
|
Modifier and Type | Method and Description |
---|---|
String |
defaultInterface()
Retrieve the name of the default interface.
|
SocketBindingGroup |
defaultInterface(String defaultInterface) |
String |
name()
Retrieve the name of this group.
|
SocketBindingGroup |
outboundSocketBinding(OutboundSocketBinding binding)
Add an outbound socket-binding to this group.
|
List<OutboundSocketBinding> |
outboundSocketBindings()
Retrieve all outbound socket-bindings attached to this group.
|
SocketBindingGroup |
portOffset(int offset) |
SocketBindingGroup |
portOffset(String expr) |
String |
portOffsetExpression()
Retrieve the port-offset expression.
|
SocketBindingGroup |
socketBinding(SocketBinding binding)
Add a socket-binding to this group.
|
SocketBinding |
socketBinding(String name)
Retrieve a socket-binding by name.
|
List<SocketBinding> |
socketBindings()
Retrieve all socket-bindings attached to this group.
|
public String name()
public String defaultInterface()
public SocketBindingGroup defaultInterface(String defaultInterface)
public String portOffsetExpression()
public SocketBindingGroup portOffset(String expr)
public SocketBindingGroup portOffset(int offset)
public SocketBindingGroup socketBinding(SocketBinding binding)
binding
- The binding to add.public SocketBinding socketBinding(String name)
name
- The socket-binding name.null
.public List<SocketBinding> socketBindings()
public SocketBindingGroup outboundSocketBinding(OutboundSocketBinding binding)
binding
- The binding to add.public List<OutboundSocketBinding> outboundSocketBindings()
Copyright © 2019 JBoss by Red Hat. All rights reserved.