|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
com.edustructures.sifworks.ADKProperties
com.edustructures.sifworks.TransportProperties
com.edustructures.sifworks.HttpProperties
public class HttpProperties
Properties for the HTTP transport protocol.
To set default HTTPS properties, call the Agent.getDefaultHttpsProperties
method to obtain the agent's default properties for this transport protocol.
The defaults are used by all zones that do not explicitly set their own
transport properties. Alternatively, you may set the default value of a
property by calling the System.setProperty method, or by using the -D option
on the Java command-line. Property names follow the naming convention
adk.transport.http.property (e.g.
adk.transport.http.port).
No default HTTP or HTTPS port is
assigned to push mode agents by the class framework. It is the developer's
responsibility to assign a default port. To do so, use one of the following
methods:
adk.transport.http.port system property prior
to creating your agent's Zones and/or Topics. This property can be
set programmatically by calling the System.setProperty method, or
via the -D option on the Java command-line.
// Set transport properties for HTTP
Agent myAgent = ...
HttpProperties http = agent.getDefaultHttpProperties();
http.setPort( 7081 );
// Set transport properties for HTTPS
HttpsProperties https = agent.getDefaultHttpsProperties();
https.setPort( 7082 );
https.setKeystorePassword( "changeit" );
...
| Constructor Summary | |
|---|---|
HttpProperties()
Constructor |
|
HttpProperties(HttpProperties parent)
Constructs an HttpProperties object that inherits values from a parent |
|
| Method Summary | |
|---|---|
java.lang.String |
getHost()
Gets the local hostname this transport protocol will use when listening for incoming traffic from the ZIS. |
int |
getPort()
Gets the port that push-mode agents will use when establishing a local socket. |
java.lang.String |
getProtocol()
Gets the name of the transport protocol associated with these properties |
java.lang.String |
getPushHost()
Gets the hostname that push-mode agents will use when sending a SIF_Register message to the zone integration server, if different than the hostname the agent binds on when establishing the local socket. |
int |
getPushPort()
Gets the port that push-mode agents will use when sending a SIF_Register message to the zone integration server, if different than the port the agent binds on when establishing the local socket. |
void |
setHost(java.lang.String host)
Sets the local host name or IP address this transport protocol will use when establishing a local socket. |
void |
setPort(int port)
Sets the port that push-mode agents will use when establishing a local socket. |
void |
setPushHost(java.lang.String host)
Sets the hostname that push-mode agents will use when sending a SIF_Register message to the zone integration server, if different than the hostname the agent binds on when establishing the local socket. |
void |
setPushPort(int port)
Sets the port that push-mode agents will use when sending a SIF_Register message to the zone integration server, if different than the port the agent binds on when establishing the local socket. |
| Methods inherited from class com.edustructures.sifworks.TransportProperties |
|---|
defaults |
| Methods inherited from class com.edustructures.sifworks.ADKProperties |
|---|
getParent, getProperty, getProperty, getProperty, getProperty, setProperty, setProperty, setProperty |
| Methods inherited from class java.util.Properties |
|---|
list, list, load, loadFromXML, propertyNames, save, store, storeToXML, storeToXML |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpProperties()
public HttpProperties(HttpProperties parent)
parent - The HttpProperties object from which properties
will be inherited if not explicitly defined by this object| Method Detail |
|---|
public java.lang.String getProtocol()
getProtocol in class TransportPropertiespublic void setPort(int port)
port - A valid port number (some platforms restrict port numbers
in the range 0-1024)public int getPort()
public void setPushPort(int port)
Most agents do not call this method. It is only needed when the network configuration demands the hostname and port the ZIS uses to contact the agent is different than the local socket the agent binds on.
port - The port to be used in the SIF_Register/SIF_Protocol/SIF_URL elementpublic int getPushPort()
public void setHost(java.lang.String host)
host - The IP address of a network interface on the local machine,
or a domain name that resolves to a local IP address. (No attempt is
made to check that the address is valid.)
public java.lang.String getHost()
throws ADKTransportException
ADKTransportExceptionpublic void setPushHost(java.lang.String host)
Most agents do not call this method. It is only needed when the network configuration demands the hostname and port the ZIS uses to contact the agent is different than the local socket the agent binds on.
host - The hostname to be used in the SIF_Register/SIF_Protocol/SIF_URL element
public java.lang.String getPushHost()
throws ADKTransportException
Most agents do not call this method. It is only needed when the network configuration demands the hostname and port the ZIS uses to contact the agent is different than the local socket the agent binds on.
host - The hostname to be used in the SIF_Register/SIF_Protocol/SIF_URL element
or null if not initialized
ADKTransportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||