~ubuntu-branches/debian/squeeze/axis/squeeze

« back to all changes in this revision

Viewing changes to src/org/apache/axis/management/jmx/DeploymentQuery.java

  • Committer: Bazaar Package Importer
  • Author(s): Vladimír Lapáček
  • Date: 2006-09-06 22:31:39 UTC
  • Revision ID: james.westby@ubuntu.com-20060906223139-l7m5edxeositeppl
Tags: upstream-1.4
Import upstream version 1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2003,2004 The Apache Software Foundation.
 
3
 *
 
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
 
7
 *
 
8
 *      http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
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.
 
15
 */
 
16
package org.apache.axis.management.jmx;
 
17
 
 
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;
 
25
 
 
26
import javax.xml.namespace.QName;
 
27
 
 
28
public class DeploymentQuery implements DeploymentQueryMBean {
 
29
    /**
 
30
     * get the global configuration
 
31
     *
 
32
     * @return
 
33
     */
 
34
    public WSDDGlobalConfiguration findGlobalConfig() {
 
35
        return ServiceAdmin.getGlobalConfig();
 
36
    }
 
37
 
 
38
    /**
 
39
     * find a specific handler
 
40
     *
 
41
     * @param qname
 
42
     * @return
 
43
     */
 
44
    public WSDDHandler findHandler(String qname) {
 
45
        return ServiceAdmin.getHandler(new QName(qname));
 
46
    }
 
47
 
 
48
    /**
 
49
     * get all handlers
 
50
     *
 
51
     * @return
 
52
     */
 
53
    public WSDDHandler[] findHandlers() {
 
54
        return ServiceAdmin.getHandlers();
 
55
    }
 
56
 
 
57
    /**
 
58
     * fina a specific service
 
59
     *
 
60
     * @param qname
 
61
     * @return
 
62
     */
 
63
    public WSDDService findService(String qname) {
 
64
        return ServiceAdmin.getService(new QName(qname));
 
65
    }
 
66
 
 
67
    /**
 
68
     * get all services
 
69
     *
 
70
     * @return
 
71
     */
 
72
    public WSDDService[] findServices() {
 
73
        return ServiceAdmin.getServices();
 
74
    }
 
75
 
 
76
    /**
 
77
     * find a specific transport
 
78
     *
 
79
     * @param qname
 
80
     * @return
 
81
     */
 
82
    public WSDDTransport findTransport(String qname) {
 
83
        return ServiceAdmin.getTransport(new QName(qname));
 
84
    }
 
85
 
 
86
    /**
 
87
     * return all transports
 
88
     *
 
89
     * @return
 
90
     */
 
91
    public WSDDTransport[] findTransports() {
 
92
        return ServiceAdmin.getTransports();
 
93
    }
 
94
 
 
95
    /**
 
96
     * List all registered services
 
97
     *
 
98
     * @return Map of Services (SOAPService objects, Key is the ServiceName)
 
99
     * @throws AxisFault ConfigurationException
 
100
     */
 
101
    public String[] listServices()
 
102
            throws AxisFault, ConfigurationException {
 
103
        return org.apache.axis.management.ServiceAdmin.listServices();
 
104
    }
 
105
}