Package fitnesse.html.template

Examples of fitnesse.html.template.HtmlPage


  private final static Logger LOG = Logger.getLogger(ShutdownResponder.class.getName());

  public Response makeResponse(final FitNesseContext context, Request request) {
    SimpleResponse response = new SimpleResponse();

    HtmlPage html = context.pageFactory.newPage();
    html.setTitle("Shutdown");
    html.setPageTitle(new PageTitle("Shutdown"));

    html.setMainTemplate("shutdownPage.vm");
    response.setContent(html.html());

    Thread shutdownThread = new Thread() {
      public void run() {
        try {
          context.fitNesse.stop();
View Full Code Here


 
  public Response makeResponse(FitNesseContext context, Request request) {
    SimpleResponse response = new SimpleResponse(401);
    response.addHeader("WWW-Authenticate", "Basic realm=\"FitNesse\"");

    HtmlPage page = context.pageFactory.newPage();
    page.addTitles("401 Unauthorized");
    page.put("resource", request.getResource());
    page.setMainTemplate("unauthorized.vm");
    response.setContent(page.html());

    return response;
  }
View Full Code Here

    }

    public Response makeResponse(FitNesseContext context, Request request) {
      SimpleResponse response = new SimpleResponse(401);
      response.addHeader("WWW-Authenticate", token == null ? NEGOTIATE : NEGOTIATE + " " + token);
      HtmlPage html = context.pageFactory.newPage();
      html.addTitles("Negotiated authentication required");
      if (request == null)
        html.setMainTemplate("authRequired.vm");
      else
        html.setMainTemplate("authFailed.vm");
      response.setContent(html.html());
      return response;
    }
View Full Code Here

TOP

Related Classes of fitnesse.html.template.HtmlPage

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.