Package com.caucho.server.dispatch

Examples of com.caucho.server.dispatch.InvocationServer


   
    _resin = resin;
    _resinSystem = resinSystem;
    _clusterService = clusterService;
   
    _invocationServer = new InvocationServer(this);
   
    _selfServer = _clusterService.getSelfServer().getData(ClusterServer.class);

    // pod id can't include the server since it's used as part of
    // cache ids
View Full Code Here


  /**
   * Returns the cache stuff.
   */
  public ArrayList<CacheItem> getCacheStatistics()
  {
    InvocationServer server = _server.getInvocationServer();
   
    ArrayList<Invocation> invocationList = server.getInvocations();

    if (invocationList == null)
      return null;

    HashMap<String,CacheItem> itemMap = new HashMap<String,CacheItem>();
View Full Code Here

  {
    _invocationKey.init(isSecure(),
                        host, getServerPort(),
                        uri, uriLength);

    InvocationServer server = _server.getInvocationServer();
   
    Invocation invocation = server.getInvocation(_invocationKey);

    if (invocation != null)
      return invocation.getRequestInvocation(_requestFacade);

    invocation = server.createInvocation();
    invocation.setSecure(isSecure());

    if (host != null) {
      String hostName = host.toString().toLowerCase(Locale.ENGLISH);
View Full Code Here

  protected Invocation buildInvocation(Invocation invocation,
                                       byte []uri,
                                       int uriLength)
    throws IOException
  {
    InvocationServer server = _server.getInvocationServer();
    InvocationDecoder decoder = server.getInvocationDecoder();

    decoder.splitQueryAndUnescape(invocation, uri, uriLength);

    if (_server.isModified()) {
      _server.logModified(log);

      _requestFacade.setInvocation(invocation);
      invocation.setWebApp(_server.getErrorWebApp());

      HttpServletResponse res = _responseFacade;
      res.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE);

      _server.restart();

      return null;
    }

    invocation = server.buildInvocation(_invocationKey.clone(), invocation);

    return invocation.getRequestInvocation(_requestFacade);
  }
View Full Code Here

  }

  private Invocation getInvocation(CharSequence host)
    throws Throwable
  {
    InvocationServer server = getServer().getInvocationServer();
    Invocation invocation = server.getInvocation(_invocationKey);

    if (invocation == null) {
      invocation = server.createInvocation();
      invocation.setSecure(_isSecure);

      if (host != null) {
        String hostName = host.toString().toLowerCase(Locale.ENGLISH);

        invocation.setHost(hostName);
        invocation.setPort(getConnection().getLocalPort());

        // Default host name if the host doesn't have a canonical
        // name
        int p = hostName.indexOf(':');
        if (p > 0)
          invocation.setHostName(hostName.substring(0, p));
        else
          invocation.setHostName(hostName);
      }

      InvocationDecoder decoder = server.getInvocationDecoder();

      decoder.splitQueryAndUnescape(invocation, _uri, _uriLength);

      /* XXX: common to AbstractHttpRequest
      if (_server.isModified()) {
        _server.logModified(log);

        _invocation = invocation;
        if (_server instanceof Server)
          _invocation.setWebApp(((Server) _server).getDefaultWebApp());

        restartServer();

        return null;
      }
      */

      invocation = server.buildInvocation(_invocationKey.clone(),
                                           invocation);
    }

    invocation = invocation.getRequestInvocation(getRequestFacade());

View Full Code Here

TOP

Related Classes of com.caucho.server.dispatch.InvocationServer

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.