Package com.google.appengine.tools.development

Examples of com.google.appengine.tools.development.AppContext


            this.devAppServer = devAppServer;
        }

        private synchronized boolean appHasPermission(Permission perm) {
            synchronized (PERMISSION_LOCK) {
                AppContext context = this.devAppServer.getAppContext();
                if ((context.getUserPermissions().implies(perm)) || (context.getApplicationPermissions().implies(perm))) {
                    return true;
                }
            }
            return ("read".equals(perm.getActions())) && (perm.getName().endsWith(KEYCHAIN_JNILIB));
        }
View Full Code Here


            throw new DeploymentException("Cannot setup GAE Api Environment", e);
        }

        try {
            HTTPContext httpContext = new HTTPContext(containerConfig.getBindAddress(), containerConfig.getBindHttpPort());
            AppContext context = server.getAppContext();
            WebAppContextUtil wctx = new WebAppContextUtil(context.getContainerContext());
            for (WebAppContextUtil.ServletHolder servlet : wctx.getServlets()) {
                httpContext.add(new Servlet(servlet.getName(), wctx.getContextPath()));
            }
            return new ProtocolMetaData().addContext(httpContext);
        } catch (Exception e) {
View Full Code Here

     * @param methodName the method name
     * @param args       the arguments
     * @throws Exception for any error
     */
    private void setup(String methodName, Object... args) throws Exception {
        AppContext appContext = server.getAppContext();
        ClassLoader cl = appContext.getClassLoader();
        Class<?> clazz = cl.loadClass(AppEngineHack.class.getName());
        Class[] classes = new Class[0];
        if (args != null && args.length > 0) {
            classes = new Class[args.length];
            for (int i = 0; i < args.length; i++)
View Full Code Here

            throw new DeploymentException("Cannot setup GAE Api Environment", e);
        }

        try {
            HTTPContext httpContext = new HTTPContext(containerConfig.getBindAddress(), containerConfig.getBindHttpPort());
            AppContext context = server.getAppContext();
            WebAppContextUtil wctx = new WebAppContextUtil(context.getContainerContext());
            for (WebAppContextUtil.ServletHolder servlet : wctx.getServlets()) {
                httpContext.add(new Servlet(servlet.getName(), wctx.getContextPath()));
            }
            return new ProtocolMetaData().addContext(httpContext);
        } catch (Exception e) {
View Full Code Here

     * @param methodName the method name
     * @param args       the arguments
     * @throws Exception for any error
     */
    private void setup(String methodName, Object... args) throws Exception {
        AppContext appContext = server.getAppContext();
        ClassLoader cl = appContext.getClassLoader();
        Class<?> clazz = cl.loadClass(AppEngineHack.class.getName());
        Class[] classes = new Class[0];
        if (args != null && args.length > 0) {
            classes = new Class[args.length];
            for (int i = 0; i < args.length; i++)
View Full Code Here

TOP

Related Classes of com.google.appengine.tools.development.AppContext

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.