Package de.metalcon.server.tomcat.NSSP.read

Examples of de.metalcon.server.tomcat.NSSP.read.ReadResponse


    response.setHeader("Access-Control-Allow-Origin",
        this.config.getHeaderAccessControl());
    final TomcatClientResponder responder = new TomcatClientResponder(
        response);

    final ReadResponse readResponse = new ReadResponse();
    final ReadRequest readRequestObject = ReadRequest.checkRequest(request,
        readResponse);

    if (readRequestObject != null) {
      // read status updates
      final ReadStatusUpdates readStatusUpdatesCommand = new ReadStatusUpdates(
          this, readResponse, readRequestObject);
      this.commandQueue.add(readStatusUpdatesCommand);

      try {
        this.workingQueue.take();
      } catch (final InterruptedException e) {
        System.err
            .println("request status queue failed due to read request");
        e.printStackTrace();
      }
    }

    responder.addLine(readResponse.toString());
    responder.finish();
  }
View Full Code Here

TOP

Related Classes of de.metalcon.server.tomcat.NSSP.read.ReadResponse

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.