Package org.zkoss.web.util.resource

Examples of org.zkoss.web.util.resource.ExtendletContext


          uri = '/' + uri.substring(1);
          final int j = uri.indexOf('/', 1);
          ctxroot = j >= 0 ? uri.substring(0, j): uri;
        }

        final ExtendletContext extctx =
          Servlets.getExtendletContext(ctx, ctxroot.substring(1));
        if (extctx != null) {
          final int j = uri.indexOf('/', 1);
          return extctx.encodeURL(request, response,
            j >= 0 ? uri.substring(j): "/");
        }

        final ServletContext newctx = ctx.getContext(ctxroot);
        if (newctx != null) {
View Full Code Here


        uri = request.getContextPath() + uri;
      } else if (uri.charAt(0) == '~') {
        final int j = uri.indexOf('/', 1);
        final String ctxroot =
          j >= 0 ? "/" + uri.substring(1, j): "/" + uri.substring(1);
        final ExtendletContext extctx =
          Servlets.getExtendletContext(ctx, ctxroot.substring(1));
        if (extctx != null) {
          uri = j >= 0 ? uri.substring(j): "/";
          return extctx.encodeRedirectURL(
            request, response, uri, params, mode);
        } else {
          uri = len >= 2 && uri.charAt(1) == '/' ?
            uri.substring(1): '/' + uri.substring(1);
        }
View Full Code Here

TOP

Related Classes of org.zkoss.web.util.resource.ExtendletContext

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.