亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? componentdefinition.java

?? struts的源代碼
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
     * Attribute can be used as content for tag get.
     * @param name Attribute name
     * @param content Attribute value ?
     * @param direct Determines how content is handled by get tag: true means content is printed directly; false, the default, means content is included
     */
    public void put(String name, Object content, boolean direct) {
        put(name, content, direct, null);
    }

    /**
     * Put an attribute in template definition.
     * Attribute can be used as content for tag get.
     * @param name Attribute name
     * @param content Attribute value
     * @param direct Determines how content is handled by get tag: true means content is printed directly; false, the default, means content is included
     * @param role Determine if content is used by get tag. If user is in role, content is used.
     */
    public void put(String name, Object content, boolean direct, String role) {
        if (direct == true) { // direct String
            put(name, content, "string", role);
        } else {
            put(name, content, "template", role);
        }

    }

    /**
     * Put an attribute in template definition.
     * Attribute can be used as content for tag get.
     * @param name Attribute name
     * @param content Attribute value
     * @param type attribute type: template, string, definition
     * @param role Determine if content is used by get tag. If user is in role, content is used.
     */
    public void put(String name, Object content, String type, String role) {
        // Is there a type set ?
        // First check direct attribute, and translate it to a valueType.
        // Then, evaluate valueType, and create requested typed attribute.
        AttributeDefinition attribute = null;

        if (content != null
            && type != null
            && !(content instanceof AttributeDefinition)) {

            String strValue = content.toString();
            if (type.equalsIgnoreCase("string")) {
                attribute = new DirectStringAttribute(strValue);

            } else if (type.equalsIgnoreCase("page")) {
                attribute = new PathAttribute(strValue);

            } else if (type.equalsIgnoreCase("template")) {
                attribute = new PathAttribute(strValue);

            } else if (type.equalsIgnoreCase("instance")) {
                attribute = new DefinitionNameAttribute(strValue);

            } else if (type.equalsIgnoreCase("definition")) {
                attribute = new DefinitionNameAttribute(strValue);
            }
        }

        putAttribute(name, attribute);
    }

    /**
     * Returns a description of the attributes.
     */
    public String toString() {
        return "{name="
            + name
            + ", path="
            + path
            + ", role="
            + role
            + ", controller="
            + controller
            + ", controllerType="
            + controllerType
            + ", controllerInstance="
            + controllerInstance
            + ", attributes="
            + attributes
            + "}\n";
    }

    /**
     * Get associated controller type.
     * Type denote a fully qualified classname.
     */
    public String getControllerType() {
        return controllerType;
    }

    /**
     * Set associated controller type.
     * Type denote a fully qualified classname.
     * @param controllerType Typeof associated controller
     */
    public void setControllerType(String controllerType) {
        this.controllerType = controllerType;
    }

    /**
     * Set associated controller name as an url, and controller
     * type as "url".
     * Name must be an url (not checked).
     * Convenience method.
     * @param controller Controller url
     */
    public void setControllerUrl(String controller) {
        setController(controller);
        setControllerType("url");
    }

    /**
     * Set associated controller name as a classtype, and controller
     * type as "classname".
     * Name denote a fully qualified classname
     * Convenience method.
     * @param controller Controller classname.
     */
    public void setControllerClass(String controller) {
        setController(controller);
        setControllerType("classname");
    }

    /**
     * Get associated controller local URL.
     * URL should be local to webcontainer in order to allow request context followup.
     * URL comes as a string.
     */
    public String getController() {
        return controller;
    }

    /**
     * Set associated controller URL.
     * URL should be local to webcontainer in order to allow request context followup.
     * URL is specified as a string.
     * @param url Url called locally
     */
    public void setController(String url) {
        this.controller = url;
    }

    /**
     * Get controller instance.
     * @return controller instance.
     */
    public Controller getControllerInstance() {
        return controllerInstance;
    }

    /**
     * Get or create controller.
     * Get controller, create it if necessary.
     * @return controller if controller or controllerType is set, null otherwise.
     * @throws InstantiationException if an error occur while instanciating Controller :
     * (classname can't be instanciated, Illegal access with instanciated class,
     * Error while instanciating class, classname can't be instanciated.
     */
    public Controller getOrCreateController() throws InstantiationException {

        if (controllerInstance != null) {
            return controllerInstance;
        }

        // Do we define a controller ?
        if (controller == null && controllerType == null) {
            return null;
        }

        // check parameters
        if (controllerType != null && controller == null) {
            throw new InstantiationException("Controller name should be defined if controllerType is set");
        }

        controllerInstance = createController(controller, controllerType);

        return controllerInstance;
    }

    /**
     * Set controller.
     */
    public void setControllerInstance(Controller controller) {
        this.controllerInstance = controller;
    }

    /**
     * Create a new instance of controller named in parameter.
     * If controllerType is specified, create controller accordingly.
     * Otherwise, if name denote a classname, create an instance of it. If class is
     *  subclass of org.apache.struts.action.Action, wrap controller
     * appropriately.
     * Otherwise, consider name as an url.
     * @param name Controller name (classname, url, ...)
     * @param controllerType Expected Controller type
     * @return org.apache.struts.tiles.Controller
     * @throws InstantiationException if an error occur while instanciating Controller :
     * (classname can't be instanciated, Illegal access with instanciated class,
     * Error while instanciating class, classname can't be instanciated.
     */
    public static Controller createController(String name, String controllerType)
        throws InstantiationException {

        if (log.isDebugEnabled()) {
            log.debug("Create controller name=" + name + ", type=" + controllerType);
        }

        Controller controller = null;

        if (controllerType == null) { // first try as a classname
            try {
                return createControllerFromClassname(name);

            } catch (InstantiationException ex) { // ok, try something else
                controller = new UrlController(name);
            }

        } else if ("url".equalsIgnoreCase(controllerType)) {
            controller = new UrlController(name);

        } else if ("classname".equalsIgnoreCase(controllerType)) {
            controller = createControllerFromClassname(name);
        }

        return controller;
    }

    /**
     * Create a controller from specified classname
     * @param classname Controller classname.
     * @return org.apache.struts.tiles.Controller
     * @throws InstantiationException if an error occur while instanciating Controller :
     * (classname can't be instanciated, Illegal access with instanciated class,
     * Error while instanciating class, classname can't be instanciated.
     */
    public static Controller createControllerFromClassname(String classname)
        throws InstantiationException {

        try {
            Class requestedClass = RequestUtils.applicationClass(classname);
            Object instance = requestedClass.newInstance();

            if (log.isDebugEnabled()) {
                log.debug("Controller created : " + instance);
            }
            return (Controller) instance;

        } catch (java.lang.ClassNotFoundException ex) {
            throw new InstantiationException(
                "Error - Class not found :" + ex.getMessage());

        } catch (java.lang.IllegalAccessException ex) {
            throw new InstantiationException(
                "Error - Illegal class access :" + ex.getMessage());

        } catch (java.lang.InstantiationException ex) {
            throw ex;

        } catch (java.lang.ClassCastException ex) {
            throw new InstantiationException(
                "Controller of class '"
                    + classname
                    + "' should implements 'Controller' or extends 'Action'");
        }
    }

}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
婷婷开心激情综合| 日韩你懂的在线观看| 日韩va欧美va亚洲va久久| 国产亚洲成av人在线观看导航| 欧美性视频一区二区三区| 国产精品18久久久久久久久久久久| 亚洲成a人v欧美综合天堂| 中文字幕在线一区| 精品国产电影一区二区| 欧美男人的天堂一二区| 色呦呦国产精品| 成人久久视频在线观看| 国精产品一区一区三区mba视频| 亚洲一区中文日韩| 亚洲欧美日韩精品久久久久| 国产日韩精品久久久| 日韩精品一区二区在线| 制服丝袜中文字幕一区| 欧美亚洲国产bt| eeuss鲁片一区二区三区 | 欧美激情一区二区三区蜜桃视频| 欧美日韩精品一区视频| 91成人免费电影| 99国产欧美另类久久久精品| 国产精品一二一区| 经典一区二区三区| 久久er精品视频| 精品一区二区综合| 六月丁香婷婷久久| 久久精品噜噜噜成人88aⅴ| 日韩激情一区二区| 日日夜夜精品视频天天综合网| 亚洲国产日日夜夜| 午夜视频一区二区| 亚洲成av人片一区二区三区 | 亚洲国产一二三| 最新中文字幕一区二区三区 | 蜜桃av噜噜一区| 日日夜夜精品视频免费| 亚洲成在人线免费| 亚洲va欧美va人人爽午夜| 亚洲国产日韩av| 婷婷六月综合网| 日本成人中文字幕| 久久国产精品一区二区| 美国一区二区三区在线播放| 精品一区二区在线观看| 黄色资源网久久资源365| 国产精品69毛片高清亚洲| 国产成人精品免费一区二区| 白白色亚洲国产精品| 99麻豆久久久国产精品免费| 在线观看亚洲一区| 欧美一区二区福利视频| xf在线a精品一区二区视频网站| 欧美精品一区二区高清在线观看| 久久麻豆一区二区| 亚洲欧洲av色图| 一区二区三区在线观看动漫| 亚洲高清在线精品| 蜜桃一区二区三区在线观看| 国产精品一区二区视频| 91片黄在线观看| 欧美日韩国产色站一区二区三区| 日韩一区二区三区视频| 久久久www成人免费无遮挡大片| 亚洲欧洲日韩在线| 日韩精品视频网| 国产福利视频一区二区三区| 色噜噜狠狠色综合欧洲selulu| 精品污污网站免费看| 欧美岛国在线观看| 亚洲人成人一区二区在线观看| 亚洲成人动漫一区| 国产黄色精品网站| 精品视频1区2区| 青青草国产成人99久久| 国产盗摄视频一区二区三区| 色av成人天堂桃色av| 精品99一区二区三区| 亚洲天堂2016| 久久超级碰视频| 一本一本久久a久久精品综合麻豆| 欧美日韩一级视频| 国产精品三级av在线播放| 日本欧美韩国一区三区| av动漫一区二区| 日韩欧美一级二级| 亚洲综合激情小说| 风间由美中文字幕在线看视频国产欧美 | 色哟哟精品一区| 久久这里只有精品首页| 亚洲成人高清在线| 99精品视频在线观看| 欧美成人欧美edvon| 亚洲图片欧美视频| 成熟亚洲日本毛茸茸凸凹| 欧美日韩国产精选| 国产精品久久久久久久久搜平片 | 欧美精品v国产精品v日韩精品| 国产精品少妇自拍| 美女任你摸久久 | 麻豆高清免费国产一区| 欧美羞羞免费网站| 亚洲私人影院在线观看| 国产精品影视在线| 精品少妇一区二区三区| 亚洲国产毛片aaaaa无费看| 成人激情免费网站| 久久一区二区三区四区| 日韩精品一二区| 欧美午夜电影网| 亚洲黄色小说网站| 不卡区在线中文字幕| 国产视频一区在线观看| 久久久不卡网国产精品二区| 久久影院视频免费| 亚洲视频免费观看| 激情伊人五月天久久综合| 欧美日韩高清一区二区三区| **性色生活片久久毛片| 一区二区三区丝袜| 欧美日韩一区二区三区视频| 五月激情丁香一区二区三区| 欧美一区二区高清| 国产福利一区二区三区视频| 中文字幕一区二区不卡| 欧美三级在线播放| 日本强好片久久久久久aaa| 精品久久久久久最新网址| 懂色中文一区二区在线播放| 伊人色综合久久天天| 91麻豆精品国产91久久久使用方法| 久久精品99国产精品日本| 国产精品婷婷午夜在线观看| 欧美亚洲综合一区| 黄色日韩网站视频| 日韩毛片高清在线播放| 91精品国产欧美一区二区成人| 国内欧美视频一区二区| 亚洲日本电影在线| 91精品国产欧美一区二区成人| 国产成人精品在线看| 一级女性全黄久久生活片免费| 3d成人动漫网站| 成人h动漫精品一区二区| 一区二区三区.www| 久久精品视频免费观看| 欧美亚洲禁片免费| 韩国av一区二区三区在线观看| 亚洲欧美一区二区三区国产精品 | 国产91色综合久久免费分享| 一区二区三区欧美久久| 天天综合日日夜夜精品| 久久综合九色综合欧美98| 欧美综合一区二区三区| 国产精品自产自拍| 亚洲va欧美va国产va天堂影院| 久久久夜色精品亚洲| 欧美日韩国产影片| av欧美精品.com| 精品影院一区二区久久久| 亚洲综合小说图片| 国产精品免费观看视频| 日韩欧美资源站| 欧美在线色视频| caoporen国产精品视频| 看国产成人h片视频| 亚洲成人在线免费| 国产精品久久久久影视| 精品粉嫩aⅴ一区二区三区四区| 91九色02白丝porn| 不卡欧美aaaaa| 国产麻豆精品theporn| 天天亚洲美女在线视频| 亚洲精品国产无天堂网2021| 国产欧美日本一区二区三区| 日韩免费电影网站| 欧美精品自拍偷拍| 欧美图区在线视频| 99精品欧美一区二区三区综合在线| 国产一二精品视频| 美国十次综合导航| 日日欢夜夜爽一区| 亚洲一区在线看| 亚洲精品成人少妇| 亚洲欧美另类在线| 国产精品久久久久久久午夜片| 久久蜜桃av一区精品变态类天堂| 日韩视频永久免费| 日韩一卡二卡三卡国产欧美| 欧美疯狂做受xxxx富婆| 欧美日韩精品一区二区三区四区 | 久久无码av三级| 日韩欧美一二三| 日韩视频一区在线观看| 欧美日韩电影在线播放| 欧美麻豆精品久久久久久| 欧美私人免费视频| 欧美视频一区二区三区|