01: /*
02: * (C) Copyright 2000 - 2005 Nabh Information Systems, Inc.
03: *
04: * This program is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU General Public License
06: * as published by the Free Software Foundation; either version 2
07: * of the License, or (at your option) any later version.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: *
18: */
19: package com.nabhinc.ws.server;
20:
21: import java.lang.reflect.Method;
22:
23: import com.nabhinc.core.WebServiceRequest;
24:
25: /**
26: * Provides information about a Web service request including
27: * invoked service info, method called, result, error (if thrown).
28: * The container creates a RequestInfo object initially populated
29: * with the target Web service info and WebServiceRequest. The object
30: * gets passed to a series of interceptors and finally to the target
31: * Web service. Each component in the chain may modify or populate
32: * fields on this object.
33: *
34: * @author Padmanabh Dabke
35: * (c) 2005 Nabh Information Systems, Inc. All Rights Reserved.
36: */
37: public class RequestInfo {
38:
39: /**
40: * Target service info
41: */
42: public WebServiceInfo serviceInfo = null;
43:
44: /**
45: * Web service request object providing request
46: * attributes and client information.
47: */
48: public WebServiceRequest webServiceRequest = null;
49:
50: /**
51: * Name of Web service method to be invoked
52: */
53: public String methodName = null;
54:
55: /**
56: * Method object to be invoked
57: */
58: public Method method = null;
59:
60: /**
61: * Method arguments
62: */
63: public Object[] arguments = null;
64:
65: /**
66: * Result of method invocation
67: */
68: public Object result = null;
69:
70: /**
71: * Error encountered during method invocation (if thrown)
72: */
73: public Throwable error = null;
74:
75: /**
76: * Redirect URL. Set if one of the interceptors
77: * or the target service decides to redirect the request
78: * instead of handling it.
79: */
80: public String redirect = null;
81:
82: }
|