Package org.w3c.www.protocol.http

Examples of org.w3c.www.protocol.http.PropRequestFilterException


    c = Class.forName(serializer_c);
    serializer = (CacheSerializer) c.newInstance();
      } catch (Exception ex) {
    // a fatal error! The cache won't be loaded...
    ex.printStackTrace();
    throw new PropRequestFilterException("Unable to start cache");
      }
      // now create the store as we have the basic things here
      store = new PushCacheStore();
      try {
    store.initialize(this);
View Full Code Here


      Class c = Class.forName("org.w3c.www.protocol.http.cache.CacheFilter");
      cache   = (CacheFilter) manager.getGlobalFilter(c);
  } catch (Exception ex) {
  }
  if ( cache == null )
      throw new PropRequestFilterException("no cache filter.");
  start();
    }
View Full Code Here

  // Initialize our ICPReceiver:
  try {
      icp = new ICPReceiver(manager, this, port);
  } catch (SocketException ex) {
      ex.printStackTrace();
      throw new PropRequestFilterException(ex.getMessage());
  }
  if ( debug )
      System.out.println("icp: listening on port "+port);
  manager.setFilter(this);
    }
View Full Code Here

      // load all the Cookie filter and register them in the manager
      try {
    root.loadCookies(cookiefile);
      } catch (FileNotFoundException ex) {
    System.out.println(ex.getMessage());
    throw new PropRequestFilterException(ex.getMessage());
      }
  }
  manager.setFilter(this);
    }
View Full Code Here

        "org.w3c.www.protocol.http.cache.CacheFilter");
      cache   = (CacheFilter) manager.getGlobalFilter(c);
  } catch (Exception ex) {
  }
  if ( cache == null )
      throw new PropRequestFilterException("no cache filter.");
  // Initialize our ICPReceiver:
  try {
      // Various formats for local address:
      this.localaddr = InetAddress.getLocalHost().getAddress();
      this.localsrc  = ((  (localaddr[0] & 0xff) << 24)
            + ((localaddr[1] & 0xff) << 16)
            + ((localaddr[2] & 0xff) << 8)
            (localaddr[3] & 0xff));
      this.addr   = InetAddress.getByName(saddr);
      this.socket = new MulticastSocket(port);
      this.socket.setTimeToLive(ttl);
      this.socket.joinGroup(addr);
  } catch (Exception ex) {
      ex.printStackTrace();
      throw new PropRequestFilterException(ex.getMessage());
  }
  setName("mICP");
  setDaemon(true);
  start();
  manager.setFilter(this);
View Full Code Here

TOP

Related Classes of org.w3c.www.protocol.http.PropRequestFilterException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.