2
* Copyright 2003,2004 The Apache Software Foundation.
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
16
package org.apache.axis.management.jmx;
18
import org.apache.axis.AxisFault;
19
import org.apache.axis.ConfigurationException;
20
import org.apache.axis.deployment.wsdd.WSDDGlobalConfiguration;
21
import org.apache.axis.deployment.wsdd.WSDDHandler;
22
import org.apache.axis.deployment.wsdd.WSDDService;
23
import org.apache.axis.deployment.wsdd.WSDDTransport;
24
import org.apache.axis.management.ServiceAdmin;
26
import javax.xml.namespace.QName;
28
public class DeploymentQuery implements DeploymentQueryMBean {
30
* get the global configuration
34
public WSDDGlobalConfiguration findGlobalConfig() {
35
return ServiceAdmin.getGlobalConfig();
39
* find a specific handler
44
public WSDDHandler findHandler(String qname) {
45
return ServiceAdmin.getHandler(new QName(qname));
53
public WSDDHandler[] findHandlers() {
54
return ServiceAdmin.getHandlers();
58
* fina a specific service
63
public WSDDService findService(String qname) {
64
return ServiceAdmin.getService(new QName(qname));
72
public WSDDService[] findServices() {
73
return ServiceAdmin.getServices();
77
* find a specific transport
82
public WSDDTransport findTransport(String qname) {
83
return ServiceAdmin.getTransport(new QName(qname));
87
* return all transports
91
public WSDDTransport[] findTransports() {
92
return ServiceAdmin.getTransports();
96
* List all registered services
98
* @return Map of Services (SOAPService objects, Key is the ServiceName)
99
* @throws AxisFault ConfigurationException
101
public String[] listServices()
102
throws AxisFault, ConfigurationException {
103
return org.apache.axis.management.ServiceAdmin.listServices();