Package org.eclipse.ecf.internal.provider.rss.http

Examples of org.eclipse.ecf.internal.provider.rss.http.HttpRequest


  public synchronized boolean isOnTheAir() {
    return isOnTheAir;
  }

  public void handleAccept(Socket socket) throws Exception {
    final HttpRequest request = new HttpRequest(socket.getInputStream());
    final RssServerSOContainer con = (RssServerSOContainer) get(String.valueOf(port));
    if (con == null) {
      throw new IOException("Container for port " + port + " not found!");
    }
    trace("Found container: " + con.getID().getName() + " for target " + request.getURLString());
    String body = "";
    int code = HttpResponse.SERVER_ERROR;
    String path = request.getPath();
    // Tests whether this abstract pathname is absolute.
    path = path.startsWith("/") ? path.substring(1) : path;
    final File feedFile = new File(path);
    Date lastModified = new Date();
    if (feedFile.exists() && feedFile.isFile()) {
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.internal.provider.rss.http.HttpRequest

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.