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

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

?? xmlrpcworker.java

?? xmlrpc-2.0-src.zip java程序
?? JAVA
字號:
/* * Copyright 1999,2005 The Apache Software Foundation. *  * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *  *      http://www.apache.org/licenses/LICENSE-2.0 *  * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package org.apache.xmlrpc;import java.io.InputStream;/** * Tie together the XmlRequestProcessor and XmlResponseProcessor to handle * a request serially in a single thread. * * @author <a href="mailto:hannes@apache.org">Hannes Wallnoefer</a> * @author Daniel L. Rall * @author <a href="mailto:andrew@kungfoocoder.org">Andrew Evers</a> * @see org.apache.xmlrpc.XmlRpcServer * @since 1.2 */public class XmlRpcWorker{    protected XmlRpcRequestProcessor requestProcessor;    protected XmlRpcResponseProcessor responseProcessor;    protected XmlRpcHandlerMapping handlerMapping;    /**     * Create a new instance that will use the specified mapping.     */    public XmlRpcWorker(XmlRpcHandlerMapping handlerMapping)    {      requestProcessor = new XmlRpcRequestProcessor();      responseProcessor = new XmlRpcResponseProcessor();      this.handlerMapping = handlerMapping;    }    /**     * Pass the specified request to the handler. The handler should be an     * instance of {@link org.apache.xmlrpc.XmlRpcHandler} or     * {@link org.apache.xmlrpc.AuthenticatedXmlRpcHandler}.     *     * @param handler the handler to call.     * @param request the request information to use.     * @param context the context information to use.     * @return Object the result of calling the handler.     * @throws ClassCastException if the handler is not of an appropriate type.     * @throws NullPointerException if the handler is null.     * @throws Exception if the handler throws an exception.     */    protected static Object invokeHandler(Object handler, XmlRpcServerRequest request, XmlRpcContext context)        throws Exception    {        long now = 0;        try        {            if (XmlRpc.debug)            {                now = System.currentTimeMillis();            }            if (handler == null)            {              throw new NullPointerException                  ("Null handler passed to XmlRpcWorker.invokeHandler");            }            else if (handler instanceof ContextXmlRpcHandler)            {                return ((ContextXmlRpcHandler) handler).execute                    (request.getMethodName(), request.getParameters(), context);            }            else if (handler instanceof XmlRpcHandler)            {                return ((XmlRpcHandler) handler).execute                    (request.getMethodName(), request.getParameters());            }            else if (handler instanceof AuthenticatedXmlRpcHandler)            {                return ((AuthenticatedXmlRpcHandler) handler)                    .execute(request.getMethodName(), request.getParameters(),                             context.getUserName(), context.getPassword());            }            else            {               throw new ClassCastException("Handler class " +                                            handler.getClass().getName() +                                            " is not a valid XML-RPC handler");            }        }        finally        {            if (XmlRpc.debug)            {                 System.out.println("Spent " + (System.currentTimeMillis() - now)                         + " millis processing request");            }        }    }    /**     * Decode, process and encode the response or exception for an XML-RPC     * request. This method executes the handler method with the default context.     */    public byte[] execute(InputStream is, String user, String password)    {        return execute(is, defaultContext(user, password));    }    /**     * Decode, process and encode the response or exception for an XML-RPC     * request. This method executes will pass the specified context to the     * handler if the handler supports context.     *     * @param is the InputStream to read the request from.     * @param context the context for the request (may be null).     * @return byte[] the response.     * @throws org.apache.xmlrpc.ParseFailed if the request could not be parsed.     * @throws org.apache.xmlrpc.AuthenticationFailed if the handler for the     * specific method required authentication and insufficient credentials were     * supplied.     */    public byte[] execute(InputStream is, XmlRpcContext context)    {        long now = 0;        if (XmlRpc.debug)        {            now = System.currentTimeMillis();        }        try        {            XmlRpcServerRequest request = requestProcessor.decodeRequest(is);            Object handler = handlerMapping.getHandler(request.                                                       getMethodName());            Object response = invokeHandler(handler, request, context);            return responseProcessor.encodeResponse                (response, requestProcessor.getEncoding());        }        catch (AuthenticationFailed alertCallerAuth)        {            throw alertCallerAuth;        }        catch (ParseFailed alertCallerParse)        {            throw alertCallerParse;        }        catch (Exception x)        {            if (XmlRpc.debug)            {                x.printStackTrace();            }            return responseProcessor.encodeException                (x, requestProcessor.getEncoding());        }        finally        {            if (XmlRpc.debug)            {                System.out.println("Spent " + (System.currentTimeMillis() - now)                                   + " millis in request/process/response");            }        }    }    /**     * Factory method to return a default context object for the execute() method.     * This method can be overridden to return a custom sub-class of XmlRpcContext.     *     * @param user the username of the user making the request.     * @param password the password of the user making the request.     * @return XmlRpcContext the context for the reqeust.     */    protected XmlRpcContext defaultContext(String user, String password)    {        return new DefaultXmlRpcContext(user, password, handlerMapping);    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91丨九色丨蝌蚪丨老版| 在线观看中文字幕不卡| 欧美日韩中文精品| 一区二区日韩av| 色狠狠av一区二区三区| 亚洲午夜精品一区二区三区他趣| 色94色欧美sute亚洲13| 亚洲r级在线视频| 日韩欧美中文字幕一区| 激情六月婷婷久久| 国产清纯白嫩初高生在线观看91| 粉嫩aⅴ一区二区三区四区五区| 亚洲欧洲精品天堂一级| 在线一区二区三区| 蜜桃在线一区二区三区| 日本一区二区三区四区在线视频| 99视频一区二区| 亚洲二区在线视频| 欧美videos中文字幕| 欧美色窝79yyyycom| 亚洲影院理伦片| 这里只有精品免费| 久久99精品久久久久婷婷| 久久这里都是精品| 91天堂素人约啪| 欧美aaaaaa午夜精品| 欧美激情一区三区| 91电影在线观看| 久久国产乱子精品免费女| 中文字幕在线观看一区| 色哟哟精品一区| 久久9热精品视频| 亚洲人午夜精品天堂一二香蕉| 91视频免费观看| 激情六月婷婷综合| 亚洲图片欧美色图| 欧美日韩三级一区| 亚洲国产va精品久久久不卡综合| 欧美一区日韩一区| 成人高清视频免费观看| 日韩电影在线免费看| 国产人妖乱国产精品人妖| 欧美精品在线一区二区三区| 丁香五精品蜜臀久久久久99网站| 亚洲国产精品久久人人爱蜜臀| 久久久久久亚洲综合影院红桃| 欧美午夜精品理论片a级按摩| 激情综合色播五月| 亚洲电影一区二区| 最新久久zyz资源站| 欧美va亚洲va香蕉在线| 欧美午夜片在线看| 成人精品小蝌蚪| 看电视剧不卡顿的网站| 香蕉影视欧美成人| 亚洲精品欧美激情| 国产精品三级视频| 精品久久久久香蕉网| 欧美日韩免费观看一区三区| 成人av片在线观看| 国产精品一级黄| 国内成人精品2018免费看| 日本最新不卡在线| 午夜久久久影院| 亚洲一区在线电影| 亚洲免费观看高清完整| 国产精品不卡视频| 中文字幕不卡在线观看| 久久精品欧美一区二区三区不卡 | 在线综合视频播放| 国产成人精品一区二区三区网站观看| 香蕉久久夜色精品国产使用方法 | 美女视频一区在线观看| 亚洲一区二区三区激情| 亚洲欧美中日韩| 国产精品色婷婷久久58| 国产三级欧美三级| 国产日韩三级在线| 国产日韩欧美一区二区三区综合| 欧美va亚洲va| 精品国产伦一区二区三区观看方式| 欧美一三区三区四区免费在线看 | 亚洲成av人影院| 亚洲一二三级电影| 亚洲va国产va欧美va观看| 亚洲成人免费在线观看| 激情六月婷婷综合| 日韩欧美www| 欧美日韩一区二区在线观看 | 91精品国产高清一区二区三区| 欧美中文字幕一区二区三区| 91香蕉视频在线| 91视频观看视频| 欧美亚洲综合网| 欧美日韩激情一区| 91精品国产综合久久蜜臀| 欧美一卡二卡在线| 久久免费午夜影院| 国产精品麻豆久久久| 亚洲乱码中文字幕| 亚洲大尺度视频在线观看| 欧美96一区二区免费视频| 麻豆精品久久精品色综合| 国产一区二区福利视频| 懂色av一区二区三区免费观看| 一本大道久久a久久精品综合| 91久久国产综合久久| 日韩一区二区三区免费观看| 久久这里只有精品6| 亚洲视频免费在线| 天涯成人国产亚洲精品一区av| 久久精品国产99| 不卡大黄网站免费看| 欧美色精品天天在线观看视频| 日韩欧美成人午夜| 亚洲视频一区二区在线观看| 婷婷久久综合九色国产成人 | 在线播放一区二区三区| 久久久亚洲精品一区二区三区| 亚洲欧美一区二区视频| 日韩av网站免费在线| 成人激情文学综合网| 51午夜精品国产| 亚洲欧美综合另类在线卡通| 蜜桃视频第一区免费观看| 92国产精品观看| 精品人在线二区三区| 亚洲精品美腿丝袜| 国产精品影视在线观看| 91久久精品国产91性色tv| 国产色一区二区| 日本va欧美va瓶| 91丨九色丨黑人外教| 久久综合五月天婷婷伊人| 亚洲午夜电影在线| 成人午夜视频在线| 欧美成人video| 亚洲国产一区视频| 国产激情精品久久久第一区二区 | 亚洲国产综合在线| 国产精品白丝jk白祙喷水网站| 精品视频在线免费观看| 中文字幕成人网| 国内精品免费**视频| 欧美三级视频在线| **网站欧美大片在线观看| 国产一区二区三区精品欧美日韩一区二区三区| 91精品福利视频| 自拍偷拍亚洲综合| 国产激情91久久精品导航| 日韩欧美一卡二卡| 亚洲成人精品在线观看| 色综合夜色一区| 欧美激情一区二区三区在线| 久久精品国产亚洲高清剧情介绍 | 欧美日韩成人一区| 伊人夜夜躁av伊人久久| 99久久久无码国产精品| 国产日韩三级在线| 国产91在线看| 国产欧美一区二区三区鸳鸯浴 | 日韩欧美资源站| 亚洲午夜电影在线| 日本黄色一区二区| 亚洲精品国产第一综合99久久| av一区二区三区| 1024国产精品| 91丨九色丨蝌蚪富婆spa| 1000精品久久久久久久久| 成人禁用看黄a在线| 国产亚洲精品7777| 国产二区国产一区在线观看| 久久久午夜精品| 夫妻av一区二区| 国产精品美女久久久久av爽李琼| 丁香婷婷深情五月亚洲| 欧美经典三级视频一区二区三区| 岛国av在线一区| 亚洲精品中文字幕在线观看| 日本乱人伦aⅴ精品| 亚洲成av人**亚洲成av**| 在线电影国产精品| 精品在线免费视频| 国产亚洲精品aa| 91蝌蚪porny成人天涯| 亚洲午夜免费电影| 日韩一级二级三级| 国产精品亚洲成人| 国产精品成人一区二区三区夜夜夜| 99国内精品久久| 午夜精品爽啪视频| 欧美成人国产一区二区| 国产成人日日夜夜| 日韩伦理av电影| 欧美精品久久久久久久多人混战 | 色噜噜狠狠成人网p站| 日韩精品视频网| 久久久91精品国产一区二区三区| 不卡的看片网站| 日韩在线一区二区三区|