Package org.jivesoftware.openfire.server
Class RemoteServerConfiguration
- java.lang.Object
-
- org.jivesoftware.openfire.server.RemoteServerConfiguration
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Cacheable
public class RemoteServerConfiguration extends Object implements Cacheable, Externalizable
Holds the configuration when connecting to/from a remote server. The configuration specifies if incoming or outgoing connections are allowed to the remote server and the port to use when creating an outgoing connection.- Author:
- Gaston Dombiak
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RemoteServerConfiguration.Permission
-
Constructor Summary
Constructors Constructor Description RemoteServerConfiguration()
RemoteServerConfiguration(String domain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCachedSize()
Returns the approximate size of the Object in bytes.String
getDomain()
RemoteServerConfiguration.Permission
getPermission()
int
getRemotePort()
void
readExternal(ObjectInput in)
void
setPermission(RemoteServerConfiguration.Permission permission)
void
setRemotePort(int remotePort)
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
RemoteServerConfiguration
public RemoteServerConfiguration()
-
RemoteServerConfiguration
public RemoteServerConfiguration(String domain)
-
-
Method Detail
-
getDomain
public String getDomain()
-
getPermission
public RemoteServerConfiguration.Permission getPermission()
-
setPermission
public void setPermission(RemoteServerConfiguration.Permission permission)
-
getRemotePort
public int getRemotePort()
-
setRemotePort
public void setRemotePort(int remotePort)
-
getCachedSize
public int getCachedSize()
Description copied from interface:Cacheable
Returns the approximate size of the Object in bytes. The size should be considered to be a best estimate of how much memory the Object occupies and may be based on empirical trials or dynamic calculations.- Specified by:
getCachedSize
in interfaceCacheable
- Returns:
- the size of the Object in bytes.
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
-