Package org.w3c.jigsaw.http

Examples of org.w3c.jigsaw.http.httpd


     * @return the real path.
     * @deprecated since jsdk1.2
     */

    public String getRealPath(String name) {
  httpd             server  = getServer();
  ResourceReference rr_root = server.getRootReference();
  return JigsawServletContext.getRealPath(name,
            rr_root,
            request.getTargetResource());
    }
View Full Code Here


     */
    public void registerResource(FramedResource resource) {
  super.registerResource(resource);
  if (getServletProps() == null ) {
      synchronized (this.getClass()) {
    httpd s = (httpd) getServer();
    if ( s != null ) {
        // Register the property sheet if not done yet:
        ObservableProperties props = s.getProperties() ;
        s.registerPropertySet(new ServletProps(s));
    }
      }
  }
    }
View Full Code Here

  }
  return (HttpSessionContext)sessionContext;
    }

    protected ServletProps getServletProps() {
  httpd server = (httpd) getServer();
  return (ServletProps)
      server.getPropertySet(ServletProps.SERVLET_PROPS_NAME);
    }
View Full Code Here

    /**
     * We are attached a thread, now it's time to performt the job.
     */

    public void run() {
  httpd   server   = (httpd) getServer();
  int     interval = -1;
  try {
      while ( alive ) {
    // Are we still alive ?
    interval = getInterval();
    alive    = ((getFlushLog()
           || getFlushProperties()
           || getFlushConfiguration())
          && (interval > 0 ));
    if ( ! alive )
        break;
    // Wait for something to do:
    synchronized(this) {
        try {
      wait(interval*1000);
        } catch (InterruptedException ex) {
        }
    }
    // Do what is to be done:
    checkpoint = new Date();
    if ( getTraceFlag() )
        System.out.println("*** Checkpoint ("+
               server.getIdentifier()+
               ") at "+
               checkpoint);
    if (alive && getFlushConfiguration() )
        server.checkpoint();
    if (alive && getFlushLog()) {
        Logger logger = ((httpd)getServer()).getLogger();
        if ( logger != null)
      logger.sync();
    }
      }
  } catch (Exception ex) {
      String msg = ("exception while running \""+
        ex.getMessage() + "\". Stopped.");
      server.errlog(this, msg);
  } finally {
      thread = null;
  }
    }
View Full Code Here

     */

    protected synchronized void acquireRealm() {
  // Get our catalog:
  if ( catalog == null ) {
      httpd server = (httpd)
    ((FramedResource) getTargetResource()).getServer() ;
      catalog = server.getRealmsCatalog() ;
  }
  // Check that our realm name is valid:
  String name = getRealm() ;
  if ( name == null )
      return ;
View Full Code Here

     */
    protected synchronized void acquireRealm() {
  entries = new Vector(10);
  // Get our catalog:
  if ( catalog == null ) {
      httpd server = (httpd)
    ((FramedResource) getTargetResource()).getServer() ;
      catalog = server.getRealmsCatalog() ;
  }
  // Check that our realm name is valid:
  String name = getRealm() ;
  if ( name == null )
      return ;
View Full Code Here

     */

    protected synchronized void acquireRealm() {
  // Get our catalog:
  if ( catalog == null ) {
      httpd server = (httpd)
    ((FramedResource) getTargetResource()).getServer() ;
      catalog = server.getRealmsCatalog() ;
  }
  // Check that our realm name is valid:
  String name = getRealm() ;
  if ( name == null )
      return ;
View Full Code Here

    } else {
        reply = request.makeReply(HTTP.TEMPORARY_REDIRECT) ;
    }
      }
      try {
    httpd  server = (httpd) getServer();
    String   host = request.getHost();
    if (host == null)
        loc = new URL(server.getURL(), location);
    else {
        int ic = host.indexOf(':');
        if (ic < 0 ) {
      loc = new URL(new URL(server.getURL().getProtocol(),
                host,server.getURL().getFile()),
              location);
        } else {
      loc = new URL(new URL(server.getURL().getProtocol(),
                host.substring(0, ic),
                Integer.parseInt(
              host.substring(ic+1))
                ,server.getURL().getFile()),
              location);
        }
    }
    if (checkHandlePathInfo()) {
        String pathinfo = (String) request.getState(PATH_INFO);
View Full Code Here

      rr.unlock();
        }
    }
      }
      if (! done) {
    httpd s = (httpd) getServer();
    s.errlog(getClass().getName()+
       ": unable to resolve companion PutListResource at "+
       getPutListURL());
      }
  }
  return null;
View Full Code Here

        }
    }
      }
      // Make sure we did something:
      if ( !done ) {
    httpd s = (httpd) getServer();
    s.errlog(getClass().getName()+
       ": unable to resolve companion PutListResource at "+
       getPutListURL());
      }
     
      switch (status) {
View Full Code Here

TOP

Related Classes of org.w3c.jigsaw.http.httpd

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.