Package org.apache.sling.api

Examples of org.apache.sling.api.SlingHttpServletRequest


        contextProvider, type, null);
  }

  public static <T> T getFromCurrentPath(final PageContext pageContext,
      final Class<T> type) {
    final SlingHttpServletRequest request = SliceTagUtils
        .slingRequestFrom(pageContext);
    final InjectorsRepository injectorsRepository = SliceTagUtils
        .injectorsRepositoryFrom(pageContext);
    final ContextProvider contextProvider = SliceTagUtils
        .contextProviderFrom(pageContext);
View Full Code Here


      if (StringUtils.isBlank(var) || (type == null)) {
        return;
      }

      final PageContext pageContext = (PageContext) getJspContext();
      final SlingHttpServletRequest request = SliceTagUtils.slingRequestFrom(pageContext);
      final InjectorsRepository injectorsRepository = SliceTagUtils
          .injectorsRepositoryFrom(pageContext);
      final ContextProvider contextProvider = SliceTagUtils.contextProviderFrom(pageContext);

      final Object model = SliceTagUtils.getFromCurrentPath(request, injectorsRepository,
View Full Code Here

    private String brand;

    @Override
    public int doEndTag() throws JspTagException {

        final SlingHttpServletRequest request = (SlingHttpServletRequest) pageContext.getAttribute(
                ATTR_SLING_REQUEST);

        try {
            if (buildJs()) {
View Full Code Here

TOP

Related Classes of org.apache.sling.api.SlingHttpServletRequest

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.