|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteneter.messaging.messagingsystems.tcpmessagingsystem.TcpPolicyServer
public class TcpPolicyServer
TCP policy server needed for the communication with Silverlight applications.
The policy server is required by Silverlight for the communication via HTTP or TCP.
(See also HttpPolicyServer.)
The TCP policy server is a special service listening on the port 943 (by default for all Ip adresses).
When it receives <policy-file-request/> request, it returns the content of the policy file.
Silverlight automatically uses this service before the TCP connection is created.
If a Silverlight application wants to open the TCP connection,
Silverlight first sends the request on the port 943 and expects the policy file.
If the policy server is not there or the content of the policy file does not allow
the communication, the Tcp connection is not created.
Constructor Summary | |
---|---|
TcpPolicyServer()
Constructs the TCP policy server providing the policy file on the port 943 for all IP addresses. |
|
TcpPolicyServer(java.net.InetAddress ipAddress)
Constructs the TCP policy server providing the policy file on the port 943 for the given IP address. |
Method Summary | |
---|---|
java.lang.String |
getPolicyXml()
Gets policy xml. |
boolean |
isListening()
Returns true, if this instance of policy server is listening to requests. |
void |
setPolicyXml(java.lang.String policyXml)
Sets policy xml. |
void |
startPolicyServer()
Starts the policy server. |
void |
stopPolicyServer()
Stops the policy server. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TcpPolicyServer() throws java.lang.Exception
java.lang.Exception
public TcpPolicyServer(java.net.InetAddress ipAddress)
ipAddress
- Method Detail |
---|
public java.lang.String getPolicyXml()
public void setPolicyXml(java.lang.String policyXml)
policyXml
- public boolean isListening()
public void startPolicyServer() throws java.lang.Exception
java.lang.Exception
public void stopPolicyServer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |