Package org.jivesoftware.openfire.server
Class RemoteServerConfiguration
java.lang.Object
org.jivesoftware.openfire.server.RemoteServerConfiguration
- All Implemented Interfaces:
Externalizable,Serializable,Cacheable
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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the approximate size of the Object in bytes.intvoidvoidsetPermission(RemoteServerConfiguration.Permission permission) voidsetRemotePort(int remotePort) void
-
Constructor Details
-
RemoteServerConfiguration
public RemoteServerConfiguration() -
RemoteServerConfiguration
-
-
Method Details
-
getDomain
-
getPermission
-
setPermission
-
getRemotePort
public int getRemotePort() -
setRemotePort
public void setRemotePort(int remotePort) -
getCachedSize
public int getCachedSize()Description copied from interface:CacheableReturns 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:
getCachedSizein interfaceCacheable- Returns:
- the size of the Object in bytes.
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-