Examples of Page


Examples of net.nutch.db.Page

      if (unique) {
        rnd = "/" + System.currentTimeMillis();
        url += rnd;
      }
      url += "/example.html";
      FetchListEntry fle = new FetchListEntry(true, new Page(url, 1.0f), new String[] { "test" + rnd });
      FetcherOutput fo = new FetcherOutput(fle, MD5Hash.digest(url), FetcherOutput.SUCCESS);
      StringBuffer content = new StringBuffer("<html><body><h1>Hello from Page " + i + "</h1>");
      if (unique) {
        content.append("<p>Created at epoch time: " + System.currentTimeMillis() + ", " + r.nextLong() + "</p>");
      }
View Full Code Here

Examples of net.sf.mvc.mobile.Page

  protected void createNavigation() {
    /* Pages can be indexed by any object, not only string.
     * The value of the pages map can by either Page or LazyInit
     * Using LazyInit allows for creation of forms and their logic (model) only when the page is accessed
     */
    pages.put("enter-name", new Page(new EnterNameModel(SampleControler.this), new EnterNameView()));
    pages.put("say-hello", new LazyInit(){
      public Page create() {
        return new Page(new SayHelloModel(SampleControler.this), new SayHelloView());
      }     
    });
  }
View Full Code Here

Examples of net.sf.wfnm.Page

                Stack pageStack = webflow.getPageStack();

                for (int j = pageStack.size() - 1; j >= 0; j--) {
                    count++;

                    Page page = (Page) pageStack.elementAt(j);

                    buffer2.append("<tr><td align='center' bgcolor='");
                    buffer2.append(pageColor);
                    buffer2.append("' bordercolor='#000000' >\n");
                    buffer2.append("Page <b>");
                    buffer2.append(page.getUrl());
                    buffer2.append("</b> owns: ");
                    buffer2.append(page.getOwnedObjectSet().toString());
                    buffer2.append("\n");
                    buffer2.append("<tr><td>\n");

                    sessionSet.removeAll(page.getOwnedObjectSet());
                }

                buffer2.append("</table>\n");

                buffer2.append("Webflow <b>");
View Full Code Here

Examples of net.vidageek.crawler.Page

    public void run() {
        try {

            log.info("crawling url: " + urlToCrawl.link());

            Page page = downloader.get(urlToCrawl.link());
            if (page.getStatusCode() != Status.OK) {
                visitor.onError(urlToCrawl, page.getStatusCode());
            } else {
                visitor.visit(page);
            }

            for (String l : page.getLinks()) {
                String link = normalizer.normalize(l);
                final Url url = new Url(link, urlToCrawl.depth() + 1);
                if (visitor.followUrl(url)) {
                    executor.execute(new PageCrawlerExecutor(url, executor, counter, downloader, normalizer, visitor));
                }
View Full Code Here

Examples of org.activiti.engine.impl.Page

        HistoricActivityInstanceEntity historicActivityInstanceEntity = (HistoricActivityInstanceEntity) Context
                .getCommandContext()
                .getHistoricActivityInstanceEntityManager()
                .findHistoricActivityInstancesByQueryCriteria(
                        historicActivityInstanceQueryImpl, new Page(0, 1))
                .get(0);

        return historicActivityInstanceEntity;
    }
View Full Code Here

Examples of org.adoptopenjdk.lambda.tutorial.exercise4.Document.Page

     *
     */
    @Test
    public void getListOfDocumentTitlesUsingReferenceOfInstanceMethodBelongingToAClass() {
        Document expenses = new Document("My Expenses",
                Arrays.asList(new Page("LJC Open Conference ticket: £25"), new Page("Beer stipend: £100")));
        Document toDoList = new Document("My ToDo List",
                Arrays.asList(new Page("Build a todo app"), new Page("Pick up dry cleaning")));
        Document certificates = new Document("My Certificates",
                Arrays.asList(new Page("Oracle Certified Professional"), new Page("Swimming 10m")));

        assertThat(Documents.titlesOf(expenses, toDoList, certificates),
                contains("My Expenses", "My ToDo List", "My Certificates"));
        assertThat(Documents.class, usesMethodReferences("getTitle"));

View Full Code Here

Examples of org.albite.book.view.Page

                 * loading prev page
                 */
                currentPageCanvasPosition = pageCanvasPositionMax;
                mode = MODE_PAGE_LOCKED;

                final Page page = chapterBooklet.getPrevPage();

                if (page instanceof DummyPage) {
                    DummyPage pd = (DummyPage)page;
                    handleDummyPage(pd.getType(), SCROLL_BOOK_START);
                }

                if (page instanceof TextPage) {
                    stopScrolling();
                    loadPrevPage();
                    return;
                }
            }

            if (currentPageCanvasPosition <= pageCanvasPositionMin) {
               
                /*
                 * loading next page
                 */
                currentPageCanvasPosition = pageCanvasPositionMin;
                mode = MODE_PAGE_LOCKED;

                final Page page = chapterBooklet.getNextPage();

                if (page instanceof DummyPage) {
                    DummyPage pd = (DummyPage)page;
                    handleDummyPage(pd.getType(), SCROLL_BOOK_END);
                }
View Full Code Here

Examples of org.apache.activemq.store.kahadb.disk.page.Page

        if (loaded.compareAndSet(false, true)) {
            final Page<Metadata> metadataPage = tx.load(pageId, metadataMarshaller);
            // Is this a brand new index?
            if (metadataPage.getType() == Page.PAGE_FREE_TYPE) {
                // We need to create the pages for the bins
                Page binPage = tx.allocate(metadata.binCapacity);
                metadata.binPageId = binPage.getPageId();
                metadata.page = metadataPage;
                metadataPage.set(metadata);
                clear(tx);

                // If failure happens now we can continue initializing the
View Full Code Here

Examples of org.apache.click.Page

     * @throws Exception if an error occurs creating the Page
     */
    protected Page newPageInstance(String path, Class pageClass,
            HttpServletRequest request) throws Exception {

        Page page = null;

        String beanName = toBeanName(pageClass);

        if (getApplicationContext().containsBean(beanName)) {
            page = (Page) getApplicationContext().getBean(beanName);

        } else if (getApplicationContext().containsBean(pageClass.getName())) {
            page = (Page) getApplicationContext().getBean(pageClass.getName());

        } else {
            page = (Page) pageClass.newInstance();

            // Inject any Spring beans into the page instance
            if (!pageSetterBeansMap.isEmpty()) {
                List beanList = (List) pageSetterBeansMap.get(page.getClass());
                if (beanList != null) {
                    for (int i = 0; i < beanList.size(); i++) {
                        BeanNameAndMethod bnam = (BeanNameAndMethod) beanList.get(i);
                        Object bean = getApplicationContext().getBean(bnam.beanName);

View Full Code Here

Examples of org.apache.cocoon.rest.controller.response.Page

            // forward the response
            if (restResponse instanceof Status) {
                Status status = (Status) restResponse;
                StatusCodeCollector.setStatusCode(status.getStatus());
            } else if (restResponse instanceof Page) {
                Page page = (Page) restResponse;

                ControllerContextHelper.storeContext(page.getData(), inputParameters);

                URL pageUri = new URL(new URL("servlet:"), page.getUri());
                URLConnection servletConnection = pageUri.openConnection();
                IOUtils.copy(servletConnection.getInputStream(), outputStream);
                URLConnectionUtils.closeQuietly(servletConnection);
            }
        } catch (Exception e) {
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.