📄 call.java
字号:
/* * Copyright 2005 Joe Walker * * 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.directwebremoting.extend;import java.lang.reflect.Method;/** * Call is a POJO to encapsulate the information required to make a single java * call, including the result of the call (either returned data or exception). * Either the Method and Parameters should be filled in to allow a call to be * made or, the exception should be filled in indicating that things have gone * wrong already. * @author Joe Walker [joe at getahead dot ltd dot uk] */public class Call{ /** * @return the exception */ public Throwable getException() { return exception; } /** * @param exception the exception to set */ public void setException(Throwable exception) { this.exception = exception; } /** * @return the method */ public Method getMethod() { return method; } /** * @param method the method to set */ public void setMethod(Method method) { this.method = method; } /** * @return the parameters */ public Object[] getParameters() { return parameters; } /** * @param parameters the parameters to set */ public void setParameters(Object[] parameters) { this.parameters = parameters; } /** * @param callId The callId to set. */ public void setCallId(String callId) { this.callId = callId; } /** * @return Returns the callId. */ public String getCallId() { return callId; } /** * @param scriptName The scriptName to set. */ public void setScriptName(String scriptName) { this.scriptName = scriptName; } /** * @return Returns the scriptName. */ public String getScriptName() { return scriptName; } /** * @param methodName The methodName to set. */ public void setMethodName(String methodName) { this.methodName = methodName; } /** * @return Returns the methodName. */ public String getMethodName() { return methodName; } private String callId = null; private String scriptName = null; private String methodName = null; private Method method = null; private Object[] parameters = null; private Throwable exception = null;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -