Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortService.java


1   /*=============================================================================*
2    *  Copyright 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.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
17  
18  import org.apache.ws.resource.ResourceContext;
19  import org.apache.ws.resource.handler.ServiceSoapMethodNameMap;
20  import org.apache.ws.resource.handler.SoapMethodNameMap;
21  import javax.xml.namespace.QName;
22  
23  /**
24   * This class should be generated on every "generation" against the WSDL.
25   * This will ensure it is always up-to-date with the WSDL.
26   *
27   * NOTE: This class is generated and is NOT meant to be modified.
28   */
29  public abstract class AbstractJobPortService
30     implements org.apache.ws.resource.handler.WsrfService,
31                org.apache.ws.resource.lifetime.v2004_11.porttype.ScheduledResourceTerminationPortType,
32                org.apache.ws.resource.properties.v2004_11.porttype.GetResourcePropertyPortType
33  {
34     /** DOCUMENT_ME */
35     public static final String TARGET_NSURI    =
36        "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl";
37  
38     /** DOCUMENT_ME */
39     public static final String TARGET_NSPREFIX = "wsrf-Interop-2.0-draft-03.wsdl";
40  
41     /**
42      * DOCUMENT_ME
43      */
44     private ServiceSoapMethodNameMap m_methodNameMap;
45  
46     /**
47      * DOCUMENT_ME
48      */
49     private boolean m_isInitialized;
50  
51     /**
52      * DOCUMENT_ME
53      *
54      * @param requestQname DOCUMENT_ME
55      *
56      * @return DOCUMENT_ME
57      */
58     public String getMethodName( QName requestQname )
59     {
60        if ( !m_isInitialized )
61        {
62           init(  );
63        }
64  
65        return m_methodNameMap.getMethodName( requestQname );
66     }
67  
68     /**
69      * DOCUMENT_ME
70      *
71      * @return DOCUMENT_ME
72      */
73     public abstract ResourceContext getResourceContext(  );
74  
75     /**
76      * DOCUMENT_ME
77      *
78      * @return DOCUMENT_ME
79      */
80     public final SoapMethodNameMap getMethodNameMap(  )
81     {
82        return m_methodNameMap;
83     }
84  
85     /**
86      * DOCUMENT_ME
87      *
88      * @param requestDoc DOCUMENT_ME
89      *
90      * @return DOCUMENT_ME
91      */
92     public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyResponseDocument getResourceProperty( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocument requestDoc )
93     {
94        return new org.apache.ws.resource.properties.v2004_11.porttype.impl.GetResourcePropertyPortTypeImpl( getResourceContext(  ) )
95               .getResourceProperty( requestDoc );
96     }
97  
98     /**
99      * DOCUMENT_ME
100     *
101     * @param requestDoc DOCUMENT_ME
102     *
103     * @return DOCUMENT_ME
104     */
105    public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.SetTerminationTimeResponseDocument setTerminationTime( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.SetTerminationTimeDocument requestDoc )
106    {
107       return new org.apache.ws.resource.lifetime.v2004_11.porttype.impl.ScheduledResourceTerminationPortTypeImpl( getResourceContext(  ) )
108              .setTerminationTime( requestDoc );
109    }
110 
111 
112 
113    /**
114     * DOCUMENT_ME
115     */
116    public void init(  )
117    {
118       m_methodNameMap = new ServiceSoapMethodNameMap( getResourceContext(  ) );
119       m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf( "{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd}Send_DocumentRequest" ),
120                                   "Send_Document" );
121       m_isInitialized = true;
122    }
123 
124    /**
125     * DOCUMENT_ME
126     *
127     * @return DOCUMENT_ME
128     */
129    protected final boolean isInitialized(  )
130    {
131       return m_isInitialized;
132    }
133 
134       /**
135     * DOCUMENT_ME
136     *
137     * @param requestDoc DOCUMENT_ME
138     *
139     * @return DOCUMENT_ME
140     */
141    public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.DestroyResponseDocument destroy( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.DestroyDocument requestDoc )
142    {
143       return new org.apache.ws.resource.lifetime.v2004_11.porttype.impl.ImmediateResourceTerminationPortTypeImpl( getResourceContext(  ) )
144              .destroy( requestDoc );
145    }
146 }