mockwebannotations.java
来自「Xfire文件 用于开发web service 的一个开源工具 很好用的」· Java 代码 · 共 120 行
JAVA
120 行
package org.codehaus.xfire.spring.remoting;import java.lang.reflect.Method;import java.util.Collection;import java.util.Collections;import java.util.Map;import org.codehaus.xfire.annotations.HandlerChainAnnotation;import org.codehaus.xfire.annotations.soap.SOAPBindingAnnotation;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.test.EchoImpl;public class MockWebAnnotations implements WebAnnotations{ public HandlerChainAnnotation getHandlerChainAnnotation(Class aClass) { // TODO Auto-generated method stub return null; } public SOAPBindingAnnotation getSOAPBindingAnnotation(Class aClass) { // TODO Auto-generated method stub return null; } public WebMethodAnnotation getWebMethodAnnotation(Method method) { // TODO Auto-generated method stub return null; } public WebParamAnnotation getWebParamAnnotation(Method method, int parameter) { // TODO Auto-generated method stub return null; } public WebResultAnnotation getWebResultAnnotation(Method method) { // TODO Auto-generated method stub return null; } public WebServiceAnnotation getWebServiceAnnotation(Class aClass) { return new WebServiceAnnotation(); } public boolean hasHandlerChainAnnotation(Class aClass) { // TODO Auto-generated method stub return false; } public boolean hasOnewayAnnotation(Method method) { // TODO Auto-generated method stub return false; } public boolean hasSOAPBindingAnnotation(Class aClass) { // TODO Auto-generated method stub return false; } public boolean hasWebMethodAnnotation(Method method) { // TODO Auto-generated method stub return false; } public boolean hasWebParamAnnotation(Method method, int parameter) { // TODO Auto-generated method stub return false; } public boolean hasWebResultAnnotation(Method method) { // TODO Auto-generated method stub return false; } public boolean hasWebServiceAnnotation(Class aClass) { return aClass.equals(EchoImpl.class); } public Map getServiceProperties(Class clazz) { // TODO Auto-generated method stub return null; } public Collection getFaultHandlers(Class arg0) { // TODO Auto-generated method stub return Collections.EMPTY_LIST; } public Collection getInHandlers(Class arg0) { // TODO Auto-generated method stub return Collections.EMPTY_LIST; } public Collection getOutHandlers(Class arg0) { return Collections.EMPTY_LIST; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?