Package sunlabs.brazil.handler

Examples of sunlabs.brazil.handler.MapPage


    public boolean
    init(Server server, String prefix) {
  this.prefix = prefix;
  if (MultiProxyHandler.proxies != null) {
      mapper = new MapPage(null); // don't map urls starting with '/'
      mapper.setMap(MultiProxyHandler.proxies);
      return true;
  } else {
     return false;
       }
View Full Code Here


  public void close() throws IOException {
      if (contextPath == null) {
    super.close();
    return;
      }
      MapPage map = new MapPage(contextPath);
      String s = map.convertHtml(baos.toString());
      // System.err.println("Rewrote: " + map.mapCount());
      req.res.setHeader("Content-Length", "" + s.length());
      OutputStream out = req.sock.getOutputStream();
      out.write(s.getBytes());
      out.close();
View Full Code Here

TOP

Related Classes of sunlabs.brazil.handler.MapPage

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.