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

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

?? basicrouter.java

?? 一個工作流設(shè)計及定義的系統(tǒng),可以直接與數(shù)據(jù)庫結(jié)合進(jìn)行系統(tǒng)工作流程的定義及應(yīng)用.
?? JAVA
字號:
/* * Copyright (c) 2005, John Mettraux, OpenWFE.org * All rights reserved. *  * Redistribution and use in source and binary forms, with or without  * modification, are permitted provided that the following conditions are met: *  * . Redistributions of source code must retain the above copyright notice, this *   list of conditions and the following disclaimer.   *  * . Redistributions in binary form must reproduce the above copyright notice,  *   this list of conditions and the following disclaimer in the documentation  *   and/or other materials provided with the distribution. *  * . Neither the name of the "OpenWFE" nor the names of its contributors may be *   used to endorse or promote products derived from this software without *   specific prior written permission. *  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE  * POSSIBILITY OF SUCH DAMAGE. * * $Id: BasicRouter.java,v 1.8 2005/05/17 16:40:18 jmettraux Exp $ *///// BasicRouter.java//// jmettraux@openwfe.org//// generated with // jtmpl 1.0.04 31.10.2002 John Mettraux (jmettraux@openwfe.org)//package openwfe.org.apre.impl;import openwfe.org.Utils;import openwfe.org.Parameters;import openwfe.org.ServiceException;import openwfe.org.ApplicationContext;import openwfe.org.Parameters;import openwfe.org.xml.XmlUtils;import openwfe.org.apre.Agent;import openwfe.org.apre.Router;import openwfe.org.apre.AgentBuilder;import openwfe.org.apre.ApreException;import openwfe.org.engine.Definitions;/** * A basic router, that fetches its info from an xml config file. * * <p><font size=2>CVS Info : * <br>$Author: jmettraux $ * <br>$Date: 2005/05/17 16:40:18 $ * <br>$Id: BasicRouter.java,v 1.8 2005/05/17 16:40:18 jmettraux Exp $ </font> * * @author jmettraux@openwfe.org */public class BasicRouter    extends Router{    private final static org.apache.log4j.Logger log = org.apache.log4j.Logger        .getLogger(BasicRouter.class.getName());    //    // INNER CLASSES    abstract class Entry    {        java.util.List matches = null;        public Entry (final java.util.List matches)        {            this.matches = matches;            /*            log.debug("Entry() matches.size = "+this.matches.size());            java.util.Iterator it = this.matches.iterator();            while (it.hasNext())                log.debug("Entry() match >"+it.next()+"<");            */        }        public boolean matches (final String participantName)        {            log.debug("matches() participantName >"+participantName+"<");            java.util.Iterator it = matches.iterator();            while (it.hasNext())            {                String pattern = (String)it.next();                if (participantName.matches(pattern)) return true;            }            return false;        }        public java.util.List getMatchList ()        {            return this.matches;        }        public abstract Agent getAgent ()            throws ApreException;    }    class InstantiateEachTimeEntry        extends Entry    {        String agentBuilder = null;        String agentName = null;        String agentClass = null;        java.util.Map params = null;                public InstantiateEachTimeEntry             (final String agentBuilder,              final String agentName,              final String agentClass,              final java.util.Map params,             final java.util.List matches)        {            super(matches);            this.agentBuilder = agentBuilder;            this.agentName = agentName;            this.agentClass = agentClass;            this.params = params;        }        public Agent getAgent ()            throws ApreException        {            log.debug("instantiating agent (each time)");            return instantiateAgent                (this.agentBuilder,                  this.agentName,                  this.agentClass,                  this.params);        }    }    class InstantiateOnceEntry        extends Entry    {        Agent agent = null;        public InstantiateOnceEntry             (final Agent agent, final java.util.List matches)        {            super(matches);            this.agent = agent;        }        public Agent getAgent ()            throws ApreException        {            log.debug("returning instantiated agent (once)");            return this.agent;        }    }    //    // CONSTANTS & co    public final static String NAME = "name";    public final static String CLASS = "class";    public final static String AGENT = "agent";    public final static String MATCHES = "matches";    public final static String BUILDER = "builder";    public final static String AGENT_FILE = "agentFile";    public final static String INSTANTIATE = "instantiate";    public final static String INSTANTIATE_DEFAULT_VALUE         = "once";    //    // FIELDS    protected java.util.List entries = null;    //    // CONSTRUCTORS    public void init         (final String serviceName,          final ApplicationContext context,          final java.util.Map serviceParams)    throws         ServiceException    {        super.init(serviceName, context, serviceParams);        initAgents((String)getParams().get(AGENT_FILE));        log.debug("Service '"+getName()+"' ready for work.");        //        // display OpenWFE version in logs                log.info("OpenWFE version : "+Definitions.OPENWFE_VERSION);    }    //    // METHODS    protected void initAgents (String agentFileName)        throws ServiceException    {        if (agentFileName == null)        {            throw new ServiceException                ("Parameter '"+AGENT_FILE+                 "' is mandatory for service '"+getName()+"'");        }        agentFileName = Utils.expandUrl            (getContext().getApplicationDirectory(), agentFileName);        org.jdom.Element rootElt = null;        try        {            rootElt = XmlUtils.extractXml(agentFileName, false);        }        catch (Exception e)        {            throw new ServiceException                ("Failed to build agents from "+agentFileName, e);        }        this.entries = new java.util.ArrayList();        java.util.Iterator it = rootElt.getChildren(AGENT).iterator();        while (it.hasNext())        {            org.jdom.Element elt = (org.jdom.Element)it.next();            String agentName = elt.getAttributeValue(NAME);            String agentBuilder = elt.getAttributeValue(BUILDER);            String agentClass = elt.getAttributeValue(CLASS);            String instantiate = elt.getAttributeValue(INSTANTIATE);            if (instantiate == null)                instantiate = INSTANTIATE_DEFAULT_VALUE;            else                instantiate = instantiate.trim().toLowerCase();            java.util.Map params = Parameters.extractParameters(elt);            java.util.List matches = extractMatchList(elt);            try            {                Entry entry = null;                if (instantiate.equals("once"))                {                    Agent agent = instantiateAgent                        (agentBuilder, agentName, agentClass, params);                    entry = new InstantiateOnceEntry(agent, matches);                }                else                {                    entry = new InstantiateEachTimeEntry                        (agentBuilder,                         agentName,                         agentClass,                         params,                         matches);                }                this.entries.add(entry);                log.debug                    ("Prepared agent "+                     agentName+"::"+agentBuilder+"::"+agentClass);            }            catch (ApreException re)            {                log.debug("Failed to instantiate agent. Skipping it", re);            }        }    }    protected java.util.List extractMatchList (org.jdom.Element elt)    {        java.util.List result = new java.util.ArrayList();        java.util.Iterator it = elt.getChildren(MATCHES).iterator();        while (it.hasNext())        {            org.jdom.Element eMatch = (org.jdom.Element)it.next();            result.add(eMatch.getTextTrim());        }        return result;    }    protected Agent instantiateAgent         (final String agentBuilder,          final String agentName,          final String agentClass,          final java.util.Map params)    throws         ApreException    {        try        {            Class agentBuilderClass =                Class.forName(agentBuilder);            AgentBuilder builder =                 (AgentBuilder)agentBuilderClass.newInstance();            Agent agent = builder                .build(agentName, agentClass, getContext(), params);            return agent;        }        catch (ApreException re)        {            throw re;        }        catch (Exception e)        {            throw new ApreException                ("Failed to instantiate agent "+                 agentBuilder+"::"+agentClass, e);        }    }    //    // METHODS from Router    public Agent determineAgent (final String participantName)        throws ApreException    {        java.util.Iterator it = this.entries.iterator();        while (it.hasNext())        {            Entry entry = (Entry)it.next();            if (entry.matches(participantName)) return entry.getAgent();        }        return null;    }    //    // METHODS from Service    public org.jdom.Element getStatus ()    {        final org.jdom.Element result = new org.jdom.Element(getName());        result.addContent(XmlUtils.getClassElt(this));        result.addContent(XmlUtils.getRevisionElt("$Id: BasicRouter.java,v 1.8 2005/05/17 16:40:18 jmettraux Exp $"));        /*        org.jdom.Element entriesElt = new org.jdom.Element("entries");        java.util.Iterator it = this.entries.iterator();        while (it.hasNext())        {            Entry entry = (Entry)it.next();            org.jdom.Element entryElt = new org.jdom.Element("entry");            org.jdom.Element agentElt = new org.jdom.Element("agent");            agentElt.setAttribute                ("class", entry.getAgent().getClass().getName());            entryElt.addContent(agentElt);            entriesElt.addContent(entryElt);        }        result.addContent(entriesElt);        */        return result;    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
97精品久久久久中文字幕| 麻豆精品新av中文字幕| 成人免费看黄yyy456| 久久综合狠狠综合久久激情| 九色综合国产一区二区三区| 精品国产91亚洲一区二区三区婷婷| 麻豆国产精品一区二区三区 | 一区二区三区高清| 91成人在线免费观看| 午夜精品久久久久影视| 91精品综合久久久久久| 狠狠色狠狠色合久久伊人| 久久精品一区蜜桃臀影院| 不卡av在线网| 亚洲午夜私人影院| 久久久久久久av麻豆果冻| 91首页免费视频| 日本亚洲三级在线| 国产人伦精品一区二区| 色综合色狠狠综合色| 日本成人在线网站| 国产精品午夜春色av| 欧美日韩在线播放| 国产成人在线视频网站| 亚洲综合色成人| 精品国产区一区| 91美女精品福利| 日韩一区欧美二区| 中文字幕二三区不卡| 欧美日本韩国一区| 国产成人精品aa毛片| 国产高清成人在线| 一二三区精品福利视频| 亚洲精品一区二区三区在线观看| 99视频有精品| 久久不见久久见免费视频7| 国产精品女主播在线观看| 欧美色图天堂网| 国产精品亚洲а∨天堂免在线| 亚洲精品一二三区| 久久久亚洲精品石原莉奈| 色天使色偷偷av一区二区| 精品亚洲免费视频| 亚洲福利视频导航| 国产精品看片你懂得 | 在线电影欧美成精品| 国产超碰在线一区| 麻豆视频一区二区| 一区二区三区美女视频| 国产精品丝袜91| 精品福利在线导航| 在线观看91av| 欧美自拍偷拍一区| 不卡的av电影在线观看| 国产一级精品在线| 日韩成人dvd| 亚洲一区二区三区四区五区中文 | 风间由美性色一区二区三区| 日韩福利视频网| 亚洲一区在线观看免费| 国产精品福利影院| 国产欧美日韩三区| 久久久久9999亚洲精品| 精品日韩欧美在线| 欧美蜜桃一区二区三区 | 日本精品一级二级| 国产.精品.日韩.另类.中文.在线.播放| 日韩精品成人一区二区在线| 亚洲国产视频一区二区| 亚洲久草在线视频| 中文字幕在线免费不卡| 国产精品嫩草影院com| 久久蜜桃香蕉精品一区二区三区| 日韩免费高清av| 日韩色视频在线观看| 制服丝袜av成人在线看| 欧美日韩精品一区二区| 欧美日韩亚洲高清一区二区| 欧美亚洲一区二区三区四区| 色国产精品一区在线观看| 99国产精品久| 91免费版在线| 欧美性猛片xxxx免费看久爱| 欧美三级欧美一级| 欧美日韩精品欧美日韩精品一综合| 欧美天堂亚洲电影院在线播放| 91国偷自产一区二区使用方法| 91麻豆视频网站| 欧美在线免费观看视频| 欧美三日本三级三级在线播放| 欧美午夜精品免费| 91精品国产综合久久香蕉麻豆| 69成人精品免费视频| 欧美成人艳星乳罩| 国产视频一区在线播放| 欧美高清在线一区| 一区二区三区在线看| 五月综合激情网| 久久国产综合精品| 丁香婷婷综合网| 色88888久久久久久影院按摩| 欧美日韩国产小视频在线观看| 日韩一级欧美一级| 欧美国产日韩亚洲一区| 亚洲最色的网站| 免费日韩伦理电影| 国产成人av电影| 欧洲精品在线观看| 精品国产免费一区二区三区香蕉| 中文字幕乱码亚洲精品一区| 亚洲午夜久久久久中文字幕久| 另类成人小视频在线| 成人av免费在线播放| 欧美性猛片aaaaaaa做受| 日韩免费看网站| 亚洲日本中文字幕区| 日韩成人一区二区三区在线观看| 国产在线不卡视频| 色老汉av一区二区三区| 日韩网站在线看片你懂的| 国产精品伦理一区二区| 亚洲图片欧美视频| 成人黄色在线网站| 91精品国产综合久久福利软件 | 欧美色综合网站| 国产日本欧美一区二区| 亚洲超丰满肉感bbw| 成人一区在线看| 欧美一区二区三区视频免费播放| 中文字幕 久热精品 视频在线| 亚洲成人av在线电影| 成人av网址在线| 精品捆绑美女sm三区| 亚洲国产欧美日韩另类综合 | 久久精品一区二区三区四区| 一区二区国产视频| 福利一区二区在线| 欧美一区二区三区播放老司机| 亚洲色图制服丝袜| 国产剧情一区二区三区| 欧美福利电影网| 亚洲丝袜美腿综合| 国产福利精品一区二区| 欧美一区二区三区系列电影| 亚洲综合一区在线| 菠萝蜜视频在线观看一区| 精品国产a毛片| 免费美女久久99| 91精品国产综合久久福利| 亚洲自拍偷拍欧美| 97久久精品人人爽人人爽蜜臀| 久久日韩精品一区二区五区| 日韩高清一级片| 欧美美女一区二区三区| 亚洲资源在线观看| 91香蕉视频在线| 国产精品亲子伦对白| 国产不卡在线一区| 久久精品亚洲精品国产欧美kt∨| 日本不卡在线视频| 欧美久久一二三四区| 亚洲电影中文字幕在线观看| 91久久精品日日躁夜夜躁欧美| 国产精品久久久久久久久久久免费看| 国产一区二区免费视频| 久久综合色综合88| 韩国精品主播一区二区在线观看| 日韩欧美高清dvd碟片| 麻豆91在线播放| 精品国产电影一区二区| 激情久久五月天| 亚洲综合色网站| 欧美中文字幕亚洲一区二区va在线 | 日本成人中文字幕在线视频| 欧美日韩aaa| 免费在线观看一区二区三区| 日韩欧美另类在线| 久久99国产精品久久| 久久久久99精品国产片| 国产成人av资源| 国产精品亲子乱子伦xxxx裸| 一本久道中文字幕精品亚洲嫩| 亚洲免费在线视频一区 二区| 日本韩国精品在线| 婷婷成人激情在线网| 日韩三级.com| 懂色av一区二区三区蜜臀 | 日韩欧美一区二区久久婷婷| 激情五月激情综合网| 欧美激情一区二区| 精品国产污污免费网站入口 | 日韩综合在线视频| 精品久久五月天| 成人国产精品免费| 亚洲综合自拍偷拍| 欧美一卡2卡3卡4卡| 成人在线一区二区三区| 伊人夜夜躁av伊人久久| 91精选在线观看| 成人网在线播放|