Examples of fixScheme()


Examples of ru.org.linux.util.LorURL.fixScheme()

    List<PreparedRSSComment> commentsPrepared = prepareService.prepareCommentListRSS(commentsFiltred, request.isSecure());

    params.put("commentsPrepared", commentsPrepared);
    LorURL lorURL = new LorURL(siteConfig.getMainURI(), siteConfig.getMainUrl());
    params.put("mainURL", lorURL.fixScheme(request.isSecure()));

    return new ModelAndView("view-message-rss", params);
  }

  private void loadTopicScroller(Map<String, Object> params, Topic topic, User currentUser, boolean useIgnoreList) {
View Full Code Here

Examples of ru.org.linux.util.LorURL.fixScheme()

    RootNode rootNode = defaultParser.getRootNode();
    if(minimizeCut) {
      try {
        LorURL lorCutURL = new LorURL(siteConfig.getMainURI(), cutURL);
        if(lorCutURL.isTrueLorUrl()) {
          URI fixURI = new URI(lorCutURL.fixScheme(secure), true, "UTF-8");
          rootNode.setMinimizedTopicCutOptions(fixURI);
        } else {
          rootNode.setMaximizedTopicCutOptions();
        }
      } catch (Exception e) {
View Full Code Here

Examples of ru.org.linux.util.LorURL.fixScheme()

      ImageInfo mediumImageInfo = new ImageInfo(htmlPath + mediumName);
      ImageInfo fullInfo = new ImageInfo(htmlPath + image.getOriginal());
      LorURL medURI = new LorURL(siteConfig.getMainURI(), siteConfig.getMainUrl()+mediumName);
      LorURL fullURI = new LorURL(siteConfig.getMainURI(), siteConfig.getMainUrl()+image.getOriginal());

      return new PreparedImage(medURI.fixScheme(secure), mediumImageInfo, fullURI.fixScheme(secure), fullInfo, image);
    } catch (BadImageException e) {
      logger.warn("Failed to prepare image", e);
      return null;
    } catch (IOException e) {
      logger.warn("Failed to prepare image", 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.