public class JadeUrlConfiguration
extends java.lang.Object
Constructor and Description |
---|
JadeUrlConfiguration(java.lang.String urlOrIPtoCheck)
Instantiates a new JadeUrlConfiguration.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorMessage()
Returns the error message, if any.
|
java.lang.String |
getHostIP()
Provides the IP-Address of the current JADE-URL.
|
java.lang.String |
getHostName()
Provides the host name of the current JADE-URL.
|
java.lang.String |
getJadeURL()
Provides the JADE URL out of the analysed subcomponents like IP, Port and "/JADE"-Suffix.
|
java.lang.String |
getJadeURL4MTP()
return the URL for the MTP of JADE.
|
java.lang.String |
getMtpProtocol()
Gets the MtpProtocol.
|
int |
getPort()
Provides the port number of JADE.
|
int |
getPort4MTP()
Provides the port number of JADE, that is used for the MTP of the MainContainer.
|
boolean |
hasErrors()
Check for errors.
|
boolean |
isEqualJadePlatform(JadeUrlConfiguration jucToCompare)
Checks if the specified instance equal to the current one.
|
boolean |
isLocalhost()
Returns true, if the current JADE instance is located on a local machine.
|
void |
setMtpProtocol(java.lang.String mtpProtocol)
Sets the MtpProtocol.
|
void |
setPort(int newPort)
Can be used to set the port number for JADE.
|
void |
setPort4MTP(int newPort4MTP)
Can be used to set the port number for the MTP of the Main-Container.
|
public JadeUrlConfiguration(java.lang.String urlOrIPtoCheck)
urlOrIPtoCheck
- the URL or IP on which the JADE platform is running or acting (e.g "localhost:1099/JADE")public boolean hasErrors()
public java.lang.String getErrorMessage()
public boolean isEqualJadePlatform(JadeUrlConfiguration jucToCompare)
jucToCompare
- the JadeUrlChecker to comparepublic boolean isLocalhost()
public java.lang.String getJadeURL()
public java.lang.String getJadeURL4MTP()
public java.lang.String getHostIP()
public java.lang.String getHostName()
public int getPort()
public void setPort(int newPort)
newPort
- The port to be usedpublic int getPort4MTP()
public void setPort4MTP(int newPort4MTP)
newPort4MTP
- the new port4 mtppublic java.lang.String getMtpProtocol()
public void setMtpProtocol(java.lang.String mtpProtocol)
mtpProtocol
- the new currMtpProtocol