Examples of PageURL


Examples of com.agiletec.aps.system.services.url.PageURL

    }
    try {
      String ticket = request.getParameter("ticket");
      if (null != ticket && ticket.length() > 0 ) {
        CasClientUtils casClientUtils = new CasClientUtils();
        PageURL pageUrl = this.getUrlManager().createURL(reqCtx);
        String serviceUrl = casClientUtils.getURLStringWithoutTicketParam(pageUrl, reqCtx);
        _log.info("CAS - service " + serviceUrl + ", ticket " + ticket);
        Assertion assertion;
        assertion = _ticketValidationUtil.validateTicket(serviceUrl, ticket);
        request.getSession().setAttribute(CasClientPluginSystemCostants.JPCASCLIENT_CONST_CAS_ASSERTION, assertion);
View Full Code Here

Examples of com.agiletec.aps.system.services.url.PageURL

          _log.info("CAS - user not authorized and guest");
          CasClientUtils casClientUtils = new CasClientUtils();
          String loginBaseUrl = this.getCasClientConfig().getCasLoginURL();
          StringBuilder loginUrl = new StringBuilder(loginBaseUrl);
          loginUrl.append("?service=");
          PageURL pageUrl = this.getUrlManager().createURL(reqCtx);
          String serviceUrl = casClientUtils.getURLStringWithoutTicketParam(pageUrl, reqCtx);
          loginUrl.append(serviceUrl);
          _log.info("CAS - Redirecting to " + loginUrl.toString());
          reqCtx.addExtraParam(RequestContext.EXTRAPAR_REDIRECT_URL, loginUrl.toString());
          retStatus = ControllerManager.REDIRECT;
View Full Code Here

Examples of com.agiletec.aps.system.services.url.PageURL

    _casClientUtils = new CasClientUtils();
  }
 
  public void test () {
    RequestContext reqCtx = this.getRequestContext();
    PageURL pageUrl = new PageURL(_urlManager, reqCtx);

    pageUrl.addParam("param1", "value1");
    pageUrl.addParam("param2", "value2");
    pageUrl.addParam("ticket", "ticket_value");
    pageUrl.addParam("param3", "value3");
   
    String url = pageUrl.getURL();
    assertTrue(url.contains("ticket"));
   
    String urlWithoutParam = _casClientUtils.getURLStringWithoutTicketParam(pageUrl, reqCtx);
    assertNotNull(urlWithoutParam);
    assertFalse(urlWithoutParam.contains("ticket"));
View Full Code Here

Examples of com.soulgalore.crawler.core.PageURL

            Set<PageURL> urls = new HashSet<>();
            Elements elements = doc.select(query);
            for (Element src : elements) {
                if (src.attr(attributeKey).isEmpty())
                    continue;
                urls.add(new PageURL(src.attr(attributeKey), url));

            }
            return urls;
        }
View Full Code Here

Examples of org.springframework.springfaces.integrationtest.selenium.page.PageURL

    webDriver.get(url);
    return WebDriverUtils.newPage(webDriver, pageClass);
  }

  private String getUrlFromPageClass(Class<? extends Page> pageClass) {
    PageURL annotation = AnnotationUtils.findAnnotation(pageClass, PageURL.class);
    if (annotation != null) {
      return annotation.value();
    }
    return null;
  }
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.