public class AmiConfig extends Object implements Serializable
Constructor and Description |
---|
AmiConfig() |
AmiConfig(int port,
boolean useSsl,
int timeout,
int retry,
String username,
String password,
List<Definition> definitions) |
Modifier and Type | Method and Description |
---|---|
void |
addDefinition(Definition vDefinition) |
void |
addDefinition(int index,
Definition vDefinition) |
Enumeration<Definition> |
enumerateDefinition()
Method enumerateDefinition.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Definition[] |
getDefinition()
Method getDefinition.Returns the contents of the collection in an
Array.
|
Definition |
getDefinition(int index)
Method getDefinition.
|
List<Definition> |
getDefinitionCollection()
Method getDefinitionCollection.Returns a reference to
'_definitionList'.
|
int |
getDefinitionCount()
Method getDefinitionCount.
|
String |
getPassword()
Returns the value of field 'password'.
|
int |
getPort()
Returns the value of field 'port'.
|
int |
getRetry()
Returns the value of field 'retry'.
|
int |
getTimeout()
Returns the value of field 'timeout'.
|
String |
getUsername()
Returns the value of field 'username'.
|
boolean |
getUseSsl()
Returns the value of field 'useSsl'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isUseSsl()
Returns the value of field 'useSsl'.
|
Iterator<Definition> |
iterateDefinition()
Method iterateDefinition.
|
void |
removeAllDefinition() |
boolean |
removeDefinition(Definition vDefinition)
Method removeDefinition.
|
Definition |
removeDefinitionAt(int index)
Method removeDefinitionAt.
|
void |
setDefinition(Definition[] vDefinitionArray) |
void |
setDefinition(int index,
Definition vDefinition) |
void |
setDefinition(List<Definition> vDefinitionList)
Sets the value of '_definitionList' by copying the given Vector.
|
void |
setPassword(String password)
Sets the value of field 'password'.
|
void |
setPort(int port)
Sets the value of field 'port'.
|
void |
setRetry(int retry)
Sets the value of field 'retry'.
|
void |
setTimeout(int timeout)
Sets the value of field 'timeout'.
|
void |
setUsername(String username)
Sets the value of field 'username'.
|
void |
setUseSsl(boolean useSsl)
Sets the value of field 'useSsl'.
|
public AmiConfig()
public AmiConfig(int port, boolean useSsl, int timeout, int retry, String username, String password, List<Definition> definitions)
public void addDefinition(Definition vDefinition) throws IndexOutOfBoundsException
vDefinition
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addDefinition(int index, Definition vDefinition) throws IndexOutOfBoundsException
index
- vDefinition
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Enumeration<Definition> enumerateDefinition()
public boolean equals(Object obj)
public Definition getDefinition(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Definition[] getDefinition()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Definition> getDefinitionCollection()
public int getDefinitionCount()
public String getPassword()
public int getPort()
public int getRetry()
public int getTimeout()
public boolean getUseSsl()
public String getUsername()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isUseSsl()
public Iterator<Definition> iterateDefinition()
public void removeAllDefinition()
public boolean removeDefinition(Definition vDefinition)
vDefinition
- public Definition removeDefinitionAt(int index)
index
- public void setDefinition(int index, Definition vDefinition) throws IndexOutOfBoundsException
index
- vDefinition
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setDefinition(Definition[] vDefinitionArray)
vDefinitionArray
- public void setDefinition(List<Definition> vDefinitionList)
vDefinitionList
- the Vector to copy.public void setPassword(String password)
password
- the value of field 'password'.public void setPort(int port)
port
- the value of field 'port'.public void setRetry(int retry)
retry
- the value of field 'retry'.public void setTimeout(int timeout)
timeout
- the value of field 'timeout'.public void setUseSsl(boolean useSsl)
useSsl
- the value of field 'useSsl'.public void setUsername(String username)
username
- the value of field 'username'.Copyright © 2017. All rights reserved.