fitnesse.responders.PageDataWikiPageResponder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fitnesse Show documentation
Show all versions of fitnesse Show documentation
The fully integrated standalone wiki, and acceptance testing framework.
// Copyright (C) 2003-2009 by Object Mentor, Inc. All rights reserved.
// Released under the terms of the CPL Common Public License version 1.0.
package fitnesse.responders;
import fitnesse.FitNesseContext;
import fitnesse.http.Request;
import fitnesse.wiki.WikiPage;
import fitnesse.authentication.SecureOperation;
import fitnesse.authentication.SecureReadOperation;
public class PageDataWikiPageResponder extends BasicResponder {
@Override
protected String contentFrom(FitNesseContext context, Request request, WikiPage requestedPage) {
return requestedPage.getData().getContent();
}
@Override
public SecureOperation getSecureOperation() {
return new SecureReadOperation();
}
}