Package org.archive.wayback.core

Examples of org.archive.wayback.core.UIResults.forward()


      CaptureSearchResults results, ResultURIConverter uriConverter)
      throws ServletException, IOException {

    UIResults uiResults = new UIResults(wbRequest,(queryUriConverter != null ? queryUriConverter : uriConverter),results);
    if(wbRequest.isXMLMode()) {
      uiResults.forward(httpRequest, httpResponse, xmlCaptureJsp);
    } else {
      uiResults.forward(httpRequest, httpResponse, captureJsp);
    }
  }
View Full Code Here


    UIResults uiResults = new UIResults(wbRequest,(queryUriConverter != null ? queryUriConverter : uriConverter),results);
    if(wbRequest.isXMLMode()) {
      uiResults.forward(httpRequest, httpResponse, xmlCaptureJsp);
    } else {
      uiResults.forward(httpRequest, httpResponse, captureJsp);
    }
  }

  /* (non-Javadoc)
   * @see org.archive.wayback.QueryRenderer#renderUrlPrefixResults(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.archive.wayback.core.WaybackRequest, org.archive.wayback.core.SearchResults, org.archive.wayback.ResultURIConverter)
View Full Code Here

      UrlSearchResults results, ResultURIConverter uriConverter)
      throws ServletException, IOException {

    UIResults uiResults = new UIResults(wbRequest,(queryUriConverter != null ? queryUriConverter : uriConverter),results);
    if(wbRequest.isXMLMode()) {
      uiResults.forward(httpRequest, httpResponse, xmlUrlJsp);
    } else {
      uiResults.forward(httpRequest, httpResponse, urlJsp);
    }
  }
View Full Code Here

    UIResults uiResults = new UIResults(wbRequest,(queryUriConverter != null ? queryUriConverter : uriConverter),results);
    if(wbRequest.isXMLMode()) {
      uiResults.forward(httpRequest, httpResponse, xmlUrlJsp);
    } else {
      uiResults.forward(httpRequest, httpResponse, urlJsp);
    }
  }

  /**
   * @return the captureJsp
View Full Code Here

    UIResults uiResults = new UIResults(wbRequest,uriConverter,exception);
    boolean handled = false;
    if((wbRequest != null) && !wbRequest.isReplayRequest()) {

      if(wbRequest.isXMLMode()) {
        uiResults.forward(httpRequest, httpResponse, xmlErrorJsp);
        handled = true;
      }

    } else if (requestIsEmbedded(httpRequest, wbRequest)) {
   
View Full Code Here

      // types:
      handled = true;

      if (requestIsJavascript(httpRequest, wbRequest)) {

        uiResults.forward(httpRequest, httpResponse,
            javascriptErrorJsp);

      } else if (requestIsCSS(httpRequest, wbRequest)) {

        uiResults.forward(httpRequest, httpResponse, cssErrorJsp);
View Full Code Here

        uiResults.forward(httpRequest, httpResponse,
            javascriptErrorJsp);

      } else if (requestIsCSS(httpRequest, wbRequest)) {

        uiResults.forward(httpRequest, httpResponse, cssErrorJsp);

      } else if (requestIsImage(httpRequest, wbRequest)) {

        uiResults.forward(httpRequest, httpResponse, imageErrorJsp);
View Full Code Here

        uiResults.forward(httpRequest, httpResponse, cssErrorJsp);

      } else if (requestIsImage(httpRequest, wbRequest)) {

        uiResults.forward(httpRequest, httpResponse, imageErrorJsp);

      } else {
        handled = false;
      }
    }
View Full Code Here

      } else {
        handled = false;
      }
    }
    if(!handled) {
      uiResults.forward(httpRequest, httpResponse, errorJsp);
    }
  }

  public String getErrorJsp() {
    return errorJsp;
View Full Code Here

//      wbRequest.setContextPrefix(getUrlRoot());
    wbRequest.setAccessPoint(this);
    wbRequest.extractHttpRequestInfo(httpRequest);
    UIResults uiResults = new UIResults(wbRequest,uriConverter);
    try {
      uiResults.forward(httpRequest, httpResponse, translatedQ);
      return true;
    } catch(IOException e) {
      // TODO: figure out if we got IO because of a missing dispatcher
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.