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 classRemoteServerConfiguration.Permission
-
Constructor Summary
Constructors Constructor Description RemoteServerConfiguration()RemoteServerConfiguration(String domain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCachedSize()Returns the approximate size of the Object in bytes.StringgetDomain()RemoteServerConfiguration.PermissiongetPermission()intgetRemotePort()voidreadExternal(ObjectInput in)voidsetPermission(RemoteServerConfiguration.Permission permission)voidsetRemotePort(int remotePort)voidwriteExternal(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: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
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-