/** * Constructor. * * @param page * the page that may have registered {@link org.apache.wicket.protocol.ws.api.WebSocketBehavior} */ public TestWebSocketProcessor(final WicketTester wicketTester, final Page page) { super(createRequest(wicketTester, page), (WebApplication) page.getApplication()); }
/** * Constructor. * * @param page * the page that may have registered {@link org.apache.wicket.protocol.ws.api.WebSocketBehavior} */ public TestWebSocketProcessor(final WicketTester wicketTester, final Page page) { super(createRequest(wicketTester, page), (WebApplication) page.getApplication()); }
/** * Bookmarkable page can be instantiated using a bookmarkable URL. * * @return Returns true if the page is bookmarkable. */ @Override public boolean isBookmarkable() { return getApplication().getPageFactory().isBookmarkable(getClass()); }
/** * Bookmarkable page can be instantiated using a bookmarkable URL. * * @return Returns true if the page is bookmarkable. */ @Override public boolean isBookmarkable() { return getApplication().getPageFactory().isBookmarkable(getClass()); }
/** * Adds a component to the set of rendered components. * * @param component * The component that was rendered */ public final void componentRendered(final Component component) { // Inform the page that this component rendered if (getApplication().getDebugSettings().getComponentUseCheck()) { if (renderedComponents == null) { renderedComponents = new HashSet<Component>(); } if (renderedComponents.add(component) == false) { throw new MarkupException( "The component " + component + " was rendered already. You can render it only once during a render phase. Class relative path: " + component.getClassRelativePath()); } log.debug("Rendered {}", component); } }
/** * Adds a component to the set of rendered components. * * @param component * The component that was rendered */ public final void componentRendered(final Component component) { // Inform the page that this component rendered if (getApplication().getDebugSettings().getComponentUseCheck()) { if (renderedComponents == null) { renderedComponents = new HashSet<Component>(); } if (renderedComponents.add(component) == false) { throw new MarkupException( "The component " + component + " was rendered already. You can render it only once during a render phase. Class relative path: " + component.getClassRelativePath()); } log.debug("Rendered {}", component); } }
protected void onTimer(final AjaxRequestTarget target) final TimerPushService pushService = TimerPushService.get(target.getPage().getApplication());
/** * Initializes Page by adding it to the Session and initializing it. */ @Override void init() { if (isBookmarkable() == false) { setStatelessHint(false); } // Set versioning of page based on default setVersioned(getApplication().getPageSettings().getVersionPagesByDefault()); // All Pages are born dirty so they get clustered right away dirty(true); // this is a bit of a dirty hack, but calling dirty(true) results in isStateless called // which is bound to set the stateless cache to true as there are no components yet stateless = null; }
/** * Initializes Page by adding it to the Session and initializing it. */ @Override void init() { if (isBookmarkable() == false) { setStatelessHint(false); } // Set versioning of page based on default setVersioned(getApplication().getPageSettings().getVersionPagesByDefault()); // All Pages are born dirty so they get clustered right away dirty(true); // this is a bit of a dirty hack, but calling dirty(true) results in isStateless called // which is bound to set the stateless cache to true as there are no components yet stateless = null; }
final TimerPushService pushService = TimerPushService.get(target.getPage().getApplication());
private void setNextAvailableId() { if (getApplication().getSessionSettings().isPageIdUniquePerSession()) { setNumericId(getSession().nextPageId()); } else { // Set the numeric id on this page setNumericId(getPageMap().nextId()); } }
/** * */ private void setNextAvailableId() { if (getApplication().getSessionSettings().isPageIdUniquePerSession()) { setNumericId(getSession().nextPageId()); } else { // Set the numeric id on this page setNumericId(getPageMap().nextId()); } }
final IClassResolver defaultClassResolver = page.getApplication() .getApplicationSettings().getClassResolver(); String className = Packages.absolutePath(page.getClass(), pathInfo.path );
/** * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL OR OVERRIDE. * */ private final void endVersion() { // Any changes to the page after this point will be tracked by the // page's version manager. Since trackChanges is never set to false, // this effectively means that change tracking begins after the // first request to a page completes. setFlag(FLAG_TRACK_CHANGES, true); // If a new version was created if (getFlag(FLAG_NEW_VERSION)) { // Reset boolean for next request setFlag(FLAG_NEW_VERSION, false); // We're done with this version if (versionManager != null) { versionManager.endVersion(getRequest().mergeVersion()); } // Evict any page version(s) as need be getApplication().getSessionSettings().getPageMapEvictionStrategy().evict(getPageMap()); } }
/** * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL OR OVERRIDE. * */ private final void endVersion() { // Any changes to the page after this point will be tracked by the // page's version manager. Since trackChanges is never set to false, // this effectively means that change tracking begins after the // first request to a page completes. setFlag(FLAG_TRACK_CHANGES, true); // If a new version was created if (getFlag(FLAG_NEW_VERSION)) { // Reset boolean for next request setFlag(FLAG_NEW_VERSION, false); // We're done with this version if (versionManager != null) { versionManager.endVersion(getRequest().mergeVersion()); } // Evict any page version(s) as need be getApplication().getSessionSettings().getPageMapEvictionStrategy().evict(getPageMap()); } }
if (getApplication().getDebugSettings().getComponentUseCheck()) if (getApplication().getDebugSettings().isOutputMarkupContainerClassName())
if (getApplication().getDebugSettings().getComponentUseCheck()) if (getApplication().getDebugSettings().isOutputMarkupContainerClassName())
final Application app = page.getApplication();
final Application app = page.getApplication();
Catalog catalog = ((GeoServerApplication) this.getPage().getApplication()).getCatalog(); FeatureTypeInfo typeInfo; DataStoreInfo dsInfo = catalog.getStore(ri.getStore().getId(), DataStoreInfo.class);