コード例 #1
0
  public void start() throws Exception {
    if (con == null) throw new Exception("Invalid ConnectionHandler");

    con.setAttribute("context.manager", cm);
    ep.setPort(port);
    ep.setAddress(address);
    if (socketFactory != null) {
      ep.setServerSocketFactory(socketFactory);
    }
    ep.setConnectionHandler(con);
    ep.startEndpoint();
    cm.log("Starting endpoint port=\"" + port + "\" handler=\"" + con.getClass().getName() + "\" ");
  }
コード例 #2
0
 public void stop() throws Exception {
   cm.log("Stoping endpoint port=\"" + port + "\" handler=\"" + con.getClass().getName() + "\" ");
   ep.stopEndpoint();
 }