Source Code Cross Referenced for WSRPServiceLocator.java in  » Portal » liferay-portal-4.4.2 » oasis » names » tc » wsrp » v1 » wsdl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » liferay portal 4.4.2 » oasis.names.tc.wsrp.v1.wsdl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * WSRPServiceLocator.java
003:         *
004:         * This file was auto-generated from WSDL
005:         * by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.
006:         */package oasis.names.tc.wsrp.v1.wsdl;
007:
008:        public class WSRPServiceLocator extends org.apache.axis.client.Service
009:                implements  oasis.names.tc.wsrp.v1.wsdl.WSRPService {
010:
011:            public WSRPServiceLocator() {
012:            }
013:
014:            public WSRPServiceLocator(org.apache.axis.EngineConfiguration config) {
015:                super (config);
016:            }
017:
018:            public WSRPServiceLocator(java.lang.String wsdlLoc,
019:                    javax.xml.namespace.QName sName)
020:                    throws javax.xml.rpc.ServiceException {
021:                super (wsdlLoc, sName);
022:            }
023:
024:            // Use to get a proxy class for WSRPPortletManagementService
025:            private java.lang.String WSRPPortletManagementService_address = "http://localhost:8080/WSRPService";
026:
027:            public java.lang.String getWSRPPortletManagementServiceAddress() {
028:                return WSRPPortletManagementService_address;
029:            }
030:
031:            // The WSDD service name defaults to the port name.
032:            private java.lang.String WSRPPortletManagementServiceWSDDServiceName = "WSRPPortletManagementService";
033:
034:            public java.lang.String getWSRPPortletManagementServiceWSDDServiceName() {
035:                return WSRPPortletManagementServiceWSDDServiceName;
036:            }
037:
038:            public void setWSRPPortletManagementServiceWSDDServiceName(
039:                    java.lang.String name) {
040:                WSRPPortletManagementServiceWSDDServiceName = name;
041:            }
042:
043:            public oasis.names.tc.wsrp.v1.intf.WSRP_v1_PortletManagement_PortType getWSRPPortletManagementService()
044:                    throws javax.xml.rpc.ServiceException {
045:                java.net.URL endpoint;
046:                try {
047:                    endpoint = new java.net.URL(
048:                            WSRPPortletManagementService_address);
049:                } catch (java.net.MalformedURLException e) {
050:                    throw new javax.xml.rpc.ServiceException(e);
051:                }
052:                return getWSRPPortletManagementService(endpoint);
053:            }
054:
055:            public oasis.names.tc.wsrp.v1.intf.WSRP_v1_PortletManagement_PortType getWSRPPortletManagementService(
056:                    java.net.URL portAddress)
057:                    throws javax.xml.rpc.ServiceException {
058:                try {
059:                    oasis.names.tc.wsrp.v1.bind.WSRP_v1_PortletManagement_Binding_SOAPStub _stub = new oasis.names.tc.wsrp.v1.bind.WSRP_v1_PortletManagement_Binding_SOAPStub(
060:                            portAddress, this );
061:                    _stub
062:                            .setPortName(getWSRPPortletManagementServiceWSDDServiceName());
063:                    return _stub;
064:                } catch (org.apache.axis.AxisFault e) {
065:                    return null;
066:                }
067:            }
068:
069:            public void setWSRPPortletManagementServiceEndpointAddress(
070:                    java.lang.String address) {
071:                WSRPPortletManagementService_address = address;
072:            }
073:
074:            // Use to get a proxy class for WSRPRegistrationService
075:            private java.lang.String WSRPRegistrationService_address = "http://localhost:8080/WSRPService";
076:
077:            public java.lang.String getWSRPRegistrationServiceAddress() {
078:                return WSRPRegistrationService_address;
079:            }
080:
081:            // The WSDD service name defaults to the port name.
082:            private java.lang.String WSRPRegistrationServiceWSDDServiceName = "WSRPRegistrationService";
083:
084:            public java.lang.String getWSRPRegistrationServiceWSDDServiceName() {
085:                return WSRPRegistrationServiceWSDDServiceName;
086:            }
087:
088:            public void setWSRPRegistrationServiceWSDDServiceName(
089:                    java.lang.String name) {
090:                WSRPRegistrationServiceWSDDServiceName = name;
091:            }
092:
093:            public oasis.names.tc.wsrp.v1.intf.WSRP_v1_Registration_PortType getWSRPRegistrationService()
094:                    throws javax.xml.rpc.ServiceException {
095:                java.net.URL endpoint;
096:                try {
097:                    endpoint = new java.net.URL(WSRPRegistrationService_address);
098:                } catch (java.net.MalformedURLException e) {
099:                    throw new javax.xml.rpc.ServiceException(e);
100:                }
101:                return getWSRPRegistrationService(endpoint);
102:            }
103:
104:            public oasis.names.tc.wsrp.v1.intf.WSRP_v1_Registration_PortType getWSRPRegistrationService(
105:                    java.net.URL portAddress)
106:                    throws javax.xml.rpc.ServiceException {
107:                try {
108:                    oasis.names.tc.wsrp.v1.bind.WSRP_v1_Registration_Binding_SOAPStub _stub = new oasis.names.tc.wsrp.v1.bind.WSRP_v1_Registration_Binding_SOAPStub(
109:                            portAddress, this );
110:                    _stub
111:                            .setPortName(getWSRPRegistrationServiceWSDDServiceName());
112:                    return _stub;
113:                } catch (org.apache.axis.AxisFault e) {
114:                    return null;
115:                }
116:            }
117:
118:            public void setWSRPRegistrationServiceEndpointAddress(
119:                    java.lang.String address) {
120:                WSRPRegistrationService_address = address;
121:            }
122:
123:            // Use to get a proxy class for WSRPBaseService
124:            private java.lang.String WSRPBaseService_address = "http://localhost:8080/WSRPService";
125:
126:            public java.lang.String getWSRPBaseServiceAddress() {
127:                return WSRPBaseService_address;
128:            }
129:
130:            // The WSDD service name defaults to the port name.
131:            private java.lang.String WSRPBaseServiceWSDDServiceName = "WSRPBaseService";
132:
133:            public java.lang.String getWSRPBaseServiceWSDDServiceName() {
134:                return WSRPBaseServiceWSDDServiceName;
135:            }
136:
137:            public void setWSRPBaseServiceWSDDServiceName(java.lang.String name) {
138:                WSRPBaseServiceWSDDServiceName = name;
139:            }
140:
141:            public oasis.names.tc.wsrp.v1.intf.WSRP_v1_Markup_PortType getWSRPBaseService()
142:                    throws javax.xml.rpc.ServiceException {
143:                java.net.URL endpoint;
144:                try {
145:                    endpoint = new java.net.URL(WSRPBaseService_address);
146:                } catch (java.net.MalformedURLException e) {
147:                    throw new javax.xml.rpc.ServiceException(e);
148:                }
149:                return getWSRPBaseService(endpoint);
150:            }
151:
152:            public oasis.names.tc.wsrp.v1.intf.WSRP_v1_Markup_PortType getWSRPBaseService(
153:                    java.net.URL portAddress)
154:                    throws javax.xml.rpc.ServiceException {
155:                try {
156:                    oasis.names.tc.wsrp.v1.bind.WSRP_v1_Markup_Binding_SOAPStub _stub = new oasis.names.tc.wsrp.v1.bind.WSRP_v1_Markup_Binding_SOAPStub(
157:                            portAddress, this );
158:                    _stub.setPortName(getWSRPBaseServiceWSDDServiceName());
159:                    return _stub;
160:                } catch (org.apache.axis.AxisFault e) {
161:                    return null;
162:                }
163:            }
164:
165:            public void setWSRPBaseServiceEndpointAddress(
166:                    java.lang.String address) {
167:                WSRPBaseService_address = address;
168:            }
169:
170:            // Use to get a proxy class for WSRPServiceDescriptionService
171:            private java.lang.String WSRPServiceDescriptionService_address = "http://localhost:8080/WSRPService";
172:
173:            public java.lang.String getWSRPServiceDescriptionServiceAddress() {
174:                return WSRPServiceDescriptionService_address;
175:            }
176:
177:            // The WSDD service name defaults to the port name.
178:            private java.lang.String WSRPServiceDescriptionServiceWSDDServiceName = "WSRPServiceDescriptionService";
179:
180:            public java.lang.String getWSRPServiceDescriptionServiceWSDDServiceName() {
181:                return WSRPServiceDescriptionServiceWSDDServiceName;
182:            }
183:
184:            public void setWSRPServiceDescriptionServiceWSDDServiceName(
185:                    java.lang.String name) {
186:                WSRPServiceDescriptionServiceWSDDServiceName = name;
187:            }
188:
189:            public oasis.names.tc.wsrp.v1.intf.WSRP_v1_ServiceDescription_PortType getWSRPServiceDescriptionService()
190:                    throws javax.xml.rpc.ServiceException {
191:                java.net.URL endpoint;
192:                try {
193:                    endpoint = new java.net.URL(
194:                            WSRPServiceDescriptionService_address);
195:                } catch (java.net.MalformedURLException e) {
196:                    throw new javax.xml.rpc.ServiceException(e);
197:                }
198:                return getWSRPServiceDescriptionService(endpoint);
199:            }
200:
201:            public oasis.names.tc.wsrp.v1.intf.WSRP_v1_ServiceDescription_PortType getWSRPServiceDescriptionService(
202:                    java.net.URL portAddress)
203:                    throws javax.xml.rpc.ServiceException {
204:                try {
205:                    oasis.names.tc.wsrp.v1.bind.WSRP_v1_ServiceDescription_Binding_SOAPStub _stub = new oasis.names.tc.wsrp.v1.bind.WSRP_v1_ServiceDescription_Binding_SOAPStub(
206:                            portAddress, this );
207:                    _stub
208:                            .setPortName(getWSRPServiceDescriptionServiceWSDDServiceName());
209:                    return _stub;
210:                } catch (org.apache.axis.AxisFault e) {
211:                    return null;
212:                }
213:            }
214:
215:            public void setWSRPServiceDescriptionServiceEndpointAddress(
216:                    java.lang.String address) {
217:                WSRPServiceDescriptionService_address = address;
218:            }
219:
220:            /**
221:             * For the given interface, get the stub implementation.
222:             * If this service has no port for the given interface,
223:             * then ServiceException is thrown.
224:             */
225:            public java.rmi.Remote getPort(Class serviceEndpointInterface)
226:                    throws javax.xml.rpc.ServiceException {
227:                try {
228:                    if (oasis.names.tc.wsrp.v1.intf.WSRP_v1_PortletManagement_PortType.class
229:                            .isAssignableFrom(serviceEndpointInterface)) {
230:                        oasis.names.tc.wsrp.v1.bind.WSRP_v1_PortletManagement_Binding_SOAPStub _stub = new oasis.names.tc.wsrp.v1.bind.WSRP_v1_PortletManagement_Binding_SOAPStub(
231:                                new java.net.URL(
232:                                        WSRPPortletManagementService_address),
233:                                this );
234:                        _stub
235:                                .setPortName(getWSRPPortletManagementServiceWSDDServiceName());
236:                        return _stub;
237:                    }
238:                    if (oasis.names.tc.wsrp.v1.intf.WSRP_v1_Registration_PortType.class
239:                            .isAssignableFrom(serviceEndpointInterface)) {
240:                        oasis.names.tc.wsrp.v1.bind.WSRP_v1_Registration_Binding_SOAPStub _stub = new oasis.names.tc.wsrp.v1.bind.WSRP_v1_Registration_Binding_SOAPStub(
241:                                new java.net.URL(
242:                                        WSRPRegistrationService_address), this );
243:                        _stub
244:                                .setPortName(getWSRPRegistrationServiceWSDDServiceName());
245:                        return _stub;
246:                    }
247:                    if (oasis.names.tc.wsrp.v1.intf.WSRP_v1_Markup_PortType.class
248:                            .isAssignableFrom(serviceEndpointInterface)) {
249:                        oasis.names.tc.wsrp.v1.bind.WSRP_v1_Markup_Binding_SOAPStub _stub = new oasis.names.tc.wsrp.v1.bind.WSRP_v1_Markup_Binding_SOAPStub(
250:                                new java.net.URL(WSRPBaseService_address), this );
251:                        _stub.setPortName(getWSRPBaseServiceWSDDServiceName());
252:                        return _stub;
253:                    }
254:                    if (oasis.names.tc.wsrp.v1.intf.WSRP_v1_ServiceDescription_PortType.class
255:                            .isAssignableFrom(serviceEndpointInterface)) {
256:                        oasis.names.tc.wsrp.v1.bind.WSRP_v1_ServiceDescription_Binding_SOAPStub _stub = new oasis.names.tc.wsrp.v1.bind.WSRP_v1_ServiceDescription_Binding_SOAPStub(
257:                                new java.net.URL(
258:                                        WSRPServiceDescriptionService_address),
259:                                this );
260:                        _stub
261:                                .setPortName(getWSRPServiceDescriptionServiceWSDDServiceName());
262:                        return _stub;
263:                    }
264:                } catch (java.lang.Throwable t) {
265:                    throw new javax.xml.rpc.ServiceException(t);
266:                }
267:                throw new javax.xml.rpc.ServiceException(
268:                        "There is no stub implementation for the interface:  "
269:                                + (serviceEndpointInterface == null ? "null"
270:                                        : serviceEndpointInterface.getName()));
271:            }
272:
273:            /**
274:             * For the given interface, get the stub implementation.
275:             * If this service has no port for the given interface,
276:             * then ServiceException is thrown.
277:             */
278:            public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
279:                    Class serviceEndpointInterface)
280:                    throws javax.xml.rpc.ServiceException {
281:                if (portName == null) {
282:                    return getPort(serviceEndpointInterface);
283:                }
284:                java.lang.String inputPortName = portName.getLocalPart();
285:                if ("WSRPPortletManagementService".equals(inputPortName)) {
286:                    return getWSRPPortletManagementService();
287:                } else if ("WSRPRegistrationService".equals(inputPortName)) {
288:                    return getWSRPRegistrationService();
289:                } else if ("WSRPBaseService".equals(inputPortName)) {
290:                    return getWSRPBaseService();
291:                } else if ("WSRPServiceDescriptionService"
292:                        .equals(inputPortName)) {
293:                    return getWSRPServiceDescriptionService();
294:                } else {
295:                    java.rmi.Remote _stub = getPort(serviceEndpointInterface);
296:                    ((org.apache.axis.client.Stub) _stub).setPortName(portName);
297:                    return _stub;
298:                }
299:            }
300:
301:            public javax.xml.namespace.QName getServiceName() {
302:                return new javax.xml.namespace.QName(
303:                        "urn:oasis:names:tc:wsrp:v1:wsdl", "WSRPService");
304:            }
305:
306:            private java.util.HashSet ports = null;
307:
308:            public java.util.Iterator getPorts() {
309:                if (ports == null) {
310:                    ports = new java.util.HashSet();
311:                    ports.add(new javax.xml.namespace.QName(
312:                            "urn:oasis:names:tc:wsrp:v1:wsdl",
313:                            "WSRPPortletManagementService"));
314:                    ports.add(new javax.xml.namespace.QName(
315:                            "urn:oasis:names:tc:wsrp:v1:wsdl",
316:                            "WSRPRegistrationService"));
317:                    ports.add(new javax.xml.namespace.QName(
318:                            "urn:oasis:names:tc:wsrp:v1:wsdl",
319:                            "WSRPBaseService"));
320:                    ports.add(new javax.xml.namespace.QName(
321:                            "urn:oasis:names:tc:wsrp:v1:wsdl",
322:                            "WSRPServiceDescriptionService"));
323:                }
324:                return ports.iterator();
325:            }
326:
327:            /**
328:             * Set the endpoint address for the specified port name.
329:             */
330:            public void setEndpointAddress(java.lang.String portName,
331:                    java.lang.String address)
332:                    throws javax.xml.rpc.ServiceException {
333:                if ("WSRPPortletManagementService".equals(portName)) {
334:                    setWSRPPortletManagementServiceEndpointAddress(address);
335:                }
336:                if ("WSRPRegistrationService".equals(portName)) {
337:                    setWSRPRegistrationServiceEndpointAddress(address);
338:                }
339:                if ("WSRPBaseService".equals(portName)) {
340:                    setWSRPBaseServiceEndpointAddress(address);
341:                }
342:                if ("WSRPServiceDescriptionService".equals(portName)) {
343:                    setWSRPServiceDescriptionServiceEndpointAddress(address);
344:                } else { // Unknown Port Name
345:                    throw new javax.xml.rpc.ServiceException(
346:                            " Cannot set Endpoint Address for Unknown Port"
347:                                    + portName);
348:                }
349:            }
350:
351:            /**
352:             * Set the endpoint address for the specified port name.
353:             */
354:            public void setEndpointAddress(javax.xml.namespace.QName portName,
355:                    java.lang.String address)
356:                    throws javax.xml.rpc.ServiceException {
357:                setEndpointAddress(portName.getLocalPart(), address);
358:            }
359:
360:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.