package com.google.gwt.gwtpages.client;
import com.google.gwt.gwtpages.client.page.AsyncPageCallback;
import com.google.gwt.gwtpages.client.page.Page;
import com.google.gwt.gwtpages.client.page.parameters.PageParameters;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;
class UnhandledIllegalAccessPage extends HTML implements Page {
UnhandledIllegalAccessPage(String pageToken) {
super("<p>You do not have permission to view this page.</p><p>" +
"You are looking the default GWT Pages fallback page for this issue. You should deal with " +
"this case by registering an event handler {see Pages.add(PageEventHandler}). This specific " +
"method that needs to be dealt with here is the onIllegalPageAccess method. You would usually " +
"call Pages.gotoPage(...).execute() to direct to an appropriate error page or possible a login page.</p>");
}
public void init(Pages pages) throws Exception {
}
public void destroy(Pages pages) {
}
public void onEnterPage(PageParameters parameters,
PageRequestSession session, AsyncPageCallback callback) {
}
public void onExitPage() {
}
public Widget asWidget() {
return this;
}
}