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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? jsr181webannotations.java

?? Xfire文件 用于開發(fā)web service 的一個開源工具 很好用的
?? JAVA
字號:
package org.codehaus.xfire.annotations.jsr181;import java.lang.annotation.Annotation;import java.lang.reflect.Method;import java.util.Arrays;import java.util.Collection;import java.util.Collections;import java.util.HashMap;import java.util.Map;import javax.jws.HandlerChain;import javax.jws.Oneway;import javax.jws.WebMethod;import javax.jws.WebParam;import javax.jws.WebResult;import javax.jws.WebService;import javax.jws.soap.SOAPBinding;import org.codehaus.xfire.XFireRuntimeException;import org.codehaus.xfire.annotations.EnableMTOM;import org.codehaus.xfire.annotations.FaultHandlers;import org.codehaus.xfire.annotations.HandlerChainAnnotation;import org.codehaus.xfire.annotations.InHandlers;import org.codehaus.xfire.annotations.OutHandlers;import org.codehaus.xfire.annotations.ServiceProperties;import org.codehaus.xfire.annotations.ServiceProperty;import org.codehaus.xfire.annotations.WebAnnotations;import org.codehaus.xfire.annotations.WebMethodAnnotation;import org.codehaus.xfire.annotations.WebParamAnnotation;import org.codehaus.xfire.annotations.WebResultAnnotation;import org.codehaus.xfire.annotations.WebServiceAnnotation;import org.codehaus.xfire.annotations.soap.SOAPBindingAnnotation;import org.codehaus.xfire.soap.SoapConstants;public class Jsr181WebAnnotations        implements WebAnnotations{    public boolean hasWebServiceAnnotation(Class clazz)    {        return clazz.isAnnotationPresent(WebService.class);    }    public WebServiceAnnotation getWebServiceAnnotation(Class clazz)    {        WebService webService = (WebService) clazz.getAnnotation(WebService.class);        if (webService != null)        {            WebServiceAnnotation annotation = new WebServiceAnnotation();            annotation.setEndpointInterface(webService.endpointInterface());            annotation.setName(webService.name());            annotation.setServiceName(webService.serviceName());            annotation.setTargetNamespace(webService.targetNamespace());            annotation.setPortName(webService.portName());            annotation.setWsdlLocation(webService.wsdlLocation());                        return annotation;        }        else        {            return null;        }    }    public boolean hasWebMethodAnnotation(Method method)    {        return method.isAnnotationPresent(WebMethod.class);    }    public WebMethodAnnotation getWebMethodAnnotation(Method method)    {        WebMethod webMethod = (WebMethod) method.getAnnotation(WebMethod.class);        if (webMethod != null)        {            WebMethodAnnotation annotation = new WebMethodAnnotation();            annotation.setAction(webMethod.action());            annotation.setOperationName(webMethod.operationName());            annotation.setExclude(webMethod.exclude());                        return annotation;        }        else        {            return null;        }    }    public boolean hasWebResultAnnotation(Method method)    {        return method.isAnnotationPresent(WebResult.class);    }    public WebResultAnnotation getWebResultAnnotation(Method method)    {        Annotation[][] annotations = method.getParameterAnnotations();        WebResult webResult = (WebResult) method.getAnnotation(WebResult.class);        if (webResult != null)        {            WebResultAnnotation annot = new WebResultAnnotation();            annot.setName(webResult.name());            annot.setTargetNamespace(webResult.targetNamespace());            annot.setHeader(webResult.header());            annot.setPartName(webResult.partName());                        return annot;        }        else        {            return null;        }    }    public boolean hasWebParamAnnotation(Method method, int parameter)    {        Annotation[][] annotations = method.getParameterAnnotations();        if (parameter >= annotations.length)        {            return false;        }        else        {            for (int i = 0; i < annotations[parameter].length; i++)            {                Annotation annotation = annotations[parameter][i];                if (annotation.annotationType().equals(WebParam.class))                {                    return true;                }            }            return false;        }    }    public WebParamAnnotation getWebParamAnnotation(Method method, int parameter)    {        Annotation[][] annotations = method.getParameterAnnotations();        if (parameter >= annotations.length)        {            return null;        }        WebParam webParam = null;        for (int i = 0; i < annotations[parameter].length; i++)        {            Annotation annotation = annotations[parameter][i];            if (annotation.annotationType().equals(WebParam.class))            {                webParam = (WebParam) annotations[parameter][i];                break;            }        }        if (webParam != null)        {            WebParamAnnotation annot = new WebParamAnnotation();            annot.setName(webParam.name());            annot.setTargetNamespace(webParam.targetNamespace());            annot.setHeader(webParam.header());            annot.setPartName(webParam.partName());                        if (webParam.mode() == WebParam.Mode.IN)            {                annot.setMode(WebParamAnnotation.MODE_IN);            }            else if (webParam.mode() == WebParam.Mode.INOUT)            {                annot.setMode(WebParamAnnotation.MODE_INOUT);            }            else if (webParam.mode() == WebParam.Mode.OUT)            {                annot.setMode(WebParamAnnotation.MODE_OUT);            }            return annot;        }        else        {            return null;        }    }    public boolean hasOnewayAnnotation(Method method)    {        return method.isAnnotationPresent(Oneway.class);    }    public boolean hasSOAPBindingAnnotation(Class clazz)    {        return clazz.isAnnotationPresent(SOAPBinding.class);    }    public SOAPBindingAnnotation getSOAPBindingAnnotation(Class clazz)    {        SOAPBinding binding = (SOAPBinding) clazz.getAnnotation(SOAPBinding.class);        SOAPBindingAnnotation annot = null;        if (binding != null)        {            annot = new SOAPBindingAnnotation();            if (binding.parameterStyle() == SOAPBinding.ParameterStyle.BARE)            {                annot.setParameterStyle(SOAPBindingAnnotation.PARAMETER_STYLE_BARE);            }            else if (binding.parameterStyle() == SOAPBinding.ParameterStyle.WRAPPED)            {                annot.setParameterStyle(SOAPBindingAnnotation.PARAMETER_STYLE_WRAPPED);            }            if (binding.style() == SOAPBinding.Style.DOCUMENT)            {                annot.setStyle(SOAPBindingAnnotation.STYLE_DOCUMENT);            }            else if (binding.style() == SOAPBinding.Style.RPC)            {                annot.setStyle(SOAPBindingAnnotation.STYLE_RPC);            }            if (binding.use() == SOAPBinding.Use.ENCODED)            {                annot.setUse(SOAPBindingAnnotation.USE_ENCODED);            }            else if (binding.use() == SOAPBinding.Use.LITERAL)            {                annot.setUse(SOAPBindingAnnotation.USE_LITERAL);            }        }        return annot;    }    public boolean hasHandlerChainAnnotation(Class clazz)    {        return clazz.isAnnotationPresent(HandlerChain.class);    }    public HandlerChainAnnotation getHandlerChainAnnotation(Class clazz)    {        HandlerChain handlerChain = (HandlerChain) clazz.getAnnotation(HandlerChain.class);        HandlerChainAnnotation annotation = null;        if (handlerChain != null)        {            annotation = new HandlerChainAnnotation(handlerChain.file(),                                                     handlerChain.name());        }        return annotation;    }	public Map getServiceProperties(Class clazz) {		Map properties = new HashMap();		ServiceProperties serviceProperties = (ServiceProperties) clazz.getAnnotation(ServiceProperties.class); 		if(serviceProperties  != null){			ServiceProperty[] props =serviceProperties.properties(); 			for(int i=0;i<props.length;i++){				ServiceProperty serviceProperty  = props[i];				if(!"".equals(serviceProperty.value()) && serviceProperty.list().length>0 ){					throw new XFireRuntimeException("Service property cant have set both value and list values");				}				if( !"".equals(serviceProperty.value()) ){				 properties.put(serviceProperty.key(),serviceProperty.value());				}else{					properties.put(serviceProperty.key(), Arrays.asList(serviceProperty.list()));						}							}		}		ServiceProperty serviceProperty = (ServiceProperty) clazz.getAnnotation(ServiceProperty.class); 		if(serviceProperty   !=null){			if( !"".equals(serviceProperty.value()) ){				 properties.put(serviceProperty.key(),serviceProperty.value());				}else{					properties.put(serviceProperty.key(), Arrays.asList(serviceProperty.list()));						}  		}		if(clazz.getAnnotation(EnableMTOM.class)!= null){			properties.put(SoapConstants.MTOM_ENABLED,"true");		}				return properties;	}    public Collection getFaultHandlers(Class clazz)    {        FaultHandlers faultHandlers = (FaultHandlers) clazz.getAnnotation(FaultHandlers.class);         if( faultHandlers != null ){                        return Arrays.asList(faultHandlers.handlers());        }        return Collections.EMPTY_LIST;            }    public Collection getInHandlers(Class clazz)    {        InHandlers inHandlers = (InHandlers) clazz.getAnnotation(InHandlers.class);         if( inHandlers != null ){                        return Arrays.asList(inHandlers.handlers());        }        return Collections.EMPTY_LIST;    }    public Collection getOutHandlers(Class clazz)    {        OutHandlers outHandlers = (OutHandlers) clazz.getAnnotation(OutHandlers.class);         if( outHandlers != null ){                        return Arrays.asList(outHandlers.handlers());        }        return Collections.EMPTY_LIST;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲午夜高清国产拍精品| 一区二区三区免费看视频| 精品99一区二区| 日本一区二区三区在线观看| 亚洲精品自拍动漫在线| 日韩av午夜在线观看| 国产成人亚洲综合a∨婷婷| 99精品视频在线观看免费| 欧美视频在线一区二区三区| 久久亚洲二区三区| 一区二区三区四区在线免费观看| 视频一区视频二区在线观看| 懂色av中文字幕一区二区三区| aaa亚洲精品一二三区| 日韩精品最新网址| 亚洲精品伦理在线| 激情综合色播五月| 欧美在线你懂的| 久久欧美一区二区| 日韩国产欧美在线视频| 国产麻豆成人传媒免费观看| 91免费版在线看| 豆国产96在线|亚洲| 国精品**一区二区三区在线蜜桃| 日本韩国精品在线| 成人欧美一区二区三区视频网页 | 久久综合丝袜日本网| 亚洲成人在线观看视频| 精品国产乱码久久久久久牛牛| 亚洲激情六月丁香| 色一情一伦一子一伦一区| 国产精品二三区| 91香蕉视频污在线| 亚洲一区二区精品3399| 欧美视频三区在线播放| 亚洲成人激情社区| 日韩午夜激情av| 免费成人你懂的| 欧美精品一区二区三| 国产成人av网站| 欧美激情一区二区在线| 99精品久久只有精品| 亚洲精品ww久久久久久p站| 91国偷自产一区二区开放时间| 亚洲色图欧洲色图婷婷| 欧美日韩在线播| 美腿丝袜亚洲三区| 久久久久九九视频| 一本一道波多野结衣一区二区| 亚洲综合视频在线| 欧美一区二区大片| 九九精品一区二区| 中文一区在线播放| 91官网在线观看| 日本视频一区二区三区| 久久一区二区视频| 成人性视频网站| 亚洲自拍偷拍av| 欧美不卡一二三| 99久久婷婷国产综合精品 | 欧美—级在线免费片| 91免费视频网| 美女视频网站黄色亚洲| 国产精品盗摄一区二区三区| 欧美色综合天天久久综合精品| 日本中文在线一区| 国产欧美日韩麻豆91| 亚洲国产成人高清精品| 91精品国产综合久久福利软件| 久久精品av麻豆的观看方式| 国产精品久久久久国产精品日日| 欧美性色黄大片手机版| 精油按摩中文字幕久久| 国产精品污www在线观看| 欧美日韩黄视频| 99麻豆久久久国产精品免费优播| 婷婷成人综合网| 国产精品美女视频| 精品成人佐山爱一区二区| jlzzjlzz亚洲女人18| 久久精品国产色蜜蜜麻豆| 国产精品―色哟哟| 精品国产一区二区三区忘忧草 | 69精品人人人人| 97久久精品人人做人人爽50路| 蜜臀a∨国产成人精品| 亚洲女厕所小便bbb| 精品va天堂亚洲国产| 欧美精选一区二区| 色婷婷综合久久久久中文 | 欧美日韩你懂的| 成人免费观看视频| 色婷婷久久久亚洲一区二区三区| 国产精品香蕉一区二区三区| 免费成人av在线| 日韩福利电影在线| 亚洲综合无码一区二区| 亚洲免费在线视频| 亚洲色大成网站www久久九九| 2021国产精品久久精品| 日韩一二三四区| 制服丝袜亚洲播放| 欧美在线不卡一区| 91美女片黄在线| 91视视频在线直接观看在线看网页在线看 | 精品盗摄一区二区三区| 日韩欧美色综合网站| 91精品国产高清一区二区三区| 日本精品一区二区三区四区的功能| 国产成人一区在线| 国产69精品久久99不卡| 国产91在线看| av一二三不卡影片| 国产suv精品一区二区6| 国产成人综合亚洲网站| 国产91丝袜在线观看| 国产成人av自拍| www.日韩av| 欧美性受xxxx黑人xyx| 欧美日韩国产另类一区| 91麻豆精品国产91久久久久| 欧美一区二区三区免费视频| 日韩视频在线一区二区| 精品成人佐山爱一区二区| 久久精品欧美日韩精品| 国产精品国产三级国产普通话三级| 国产精品网站一区| 一区二区三区四区精品在线视频| 亚洲午夜久久久久久久久久久| 日韩精品久久久久久| 国产综合色视频| 99久久精品免费看| 欧美日韩高清一区二区| 精品少妇一区二区三区免费观看 | 成人a级免费电影| 色欧美日韩亚洲| 欧美一区二区三区男人的天堂| 国产亚洲综合在线| 亚洲欧美一区二区三区久本道91 | 亚洲第一搞黄网站| 国产精品无码永久免费888| 亚洲成人av福利| 成人免费看黄yyy456| 91国产成人在线| 精品国产一区二区亚洲人成毛片 | 国产一区不卡在线| 91视频一区二区三区| 美女视频网站黄色亚洲| 国产宾馆实践打屁股91| 97久久超碰国产精品| 石原莉奈在线亚洲二区| 青青草97国产精品免费观看| 久久成人18免费观看| 99久久久国产精品| 日韩一区二区在线看片| 久久久久久久久久看片| 久久久久国产精品厨房| 亚洲女厕所小便bbb| 激情综合五月婷婷| 欧美视频中文一区二区三区在线观看| 欧美福利一区二区| 成人激情动漫在线观看| 欧美精品丝袜中出| 中文字幕一区二区三中文字幕| 午夜激情一区二区三区| www..com久久爱| 日韩精品一区二区三区在线播放| 亚洲天堂av老司机| 韩国毛片一区二区三区| 91.成人天堂一区| 亚洲欧美日韩综合aⅴ视频| 国产精一区二区三区| 日韩一级片在线观看| 亚洲最快最全在线视频| 不卡的av在线| 久久久亚洲国产美女国产盗摄| 日欧美一区二区| 欧美亚洲另类激情小说| 日韩一区在线免费观看| 国产a精品视频| ww亚洲ww在线观看国产| 麻豆久久久久久| 欧美一区二区三区公司| 亚洲自拍偷拍综合| 色综合久久久网| 亚洲欧美综合网| 91香蕉视频污| 中文字幕综合网| caoporn国产一区二区| 国产欧美日本一区视频| 国产精品一区2区| 久久一日本道色综合| 国产麻豆欧美日韩一区| 久久网站最新地址| 国产伦精品一区二区三区在线观看 | 精品成人在线观看| 激情综合色综合久久综合| 日韩一区二区免费高清| 美女精品自拍一二三四| 日韩精品影音先锋|