Package com.cognifide.slice.commons.link

Examples of com.cognifide.slice.commons.link.LinkBuilderImpl


  /** {@inheritDoc} */
  @Override
  public int doStartTag() throws JspException {
    if (isRender()) {
      try {
        final LinkBuilderImpl linkBuilder = new LinkBuilderImpl();
        linkBuilder.setPath(handle);
        linkBuilder.setSelectorString(selector);
        linkBuilder.setExtension(extension);

        final LinkExternalizer linkExternalizer = new LinkExternalizerImpl(null);
        getJspWriter().write(linkExternalizer.externalizeLink(linkBuilder.toLink()).toString());
      } catch (Exception e) {
        // should never occur
        logger.error("unexpected exception occured", e);
      }
    }
View Full Code Here


    if (isRender()) {
      try {
        String link = this.href;

        if (externalise) {
          final LinkBuilderImpl linkBuilder = new LinkBuilderImpl();
          linkBuilder.setPath(link);
          linkBuilder.setSelectorString(selector);
          linkBuilder.setExtension(extension);

          final LinkExternalizer linkExternalizer = new LinkExternalizerImpl(null);
          link = linkExternalizer.externalizeLink(linkBuilder.toLink()).toString();
        }

        JspWriter out = getJspWriter();
        out.append("<a");
        apppendAttributeIfNotBlank(out, "href", link);
View Full Code Here

public class LinkBuilderFactoryImpl implements LinkBuilderFactory {

  @Override
  public LinkBuilder getLinkBuilder() {
    return new LinkBuilderImpl();
  }
View Full Code Here

    return new LinkBuilderImpl();
  }

  @Override
  public LinkBuilder getLinkBuilder(final Link link) {
    return new LinkBuilderImpl(link);
  }
View Full Code Here

TOP

Related Classes of com.cognifide.slice.commons.link.LinkBuilderImpl

Copyright © 2018 www.massapicom. 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.