|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ASProvider.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
/**
|
|
| 2 |
*
|
|
| 3 |
* Copyright 2005 Protique Ltd
|
|
| 4 |
*
|
|
| 5 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
| 6 |
* you may not use this file except in compliance with the License.
|
|
| 7 |
* You may obtain a copy of the License at
|
|
| 8 |
*
|
|
| 9 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
| 10 |
*
|
|
| 11 |
* Unless required by applicable law or agreed to in writing, software
|
|
| 12 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
| 13 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
| 14 |
* See the License for the specific language governing permissions and
|
|
| 15 |
* limitations under the License.
|
|
| 16 |
*
|
|
| 17 |
**/
|
|
| 18 |
package org.codehaus.activesoap.wsif;
|
|
| 19 |
|
|
| 20 |
import org.apache.wsif.spi.WSIFProvider;
|
|
| 21 |
import org.apache.wsif.WSIFPort;
|
|
| 22 |
import org.apache.wsif.WSIFException;
|
|
| 23 |
import org.apache.wsif.providers.WSIFDynamicTypeMap;
|
|
| 24 |
import org.codehaus.activesoap.RestClient;
|
|
| 25 |
import org.codehaus.activesoap.handler.stax.AnyElementMarshaler;
|
|
| 26 |
|
|
| 27 |
import javax.wsdl.*;
|
|
| 28 |
|
|
| 29 |
/**
|
|
| 30 |
* A <a href="http://ws.apache.org/wsif/">WSIF</a> provider for <a href="http://activesoap.codehaus.org/">ActiveSOAP</a>
|
|
| 31 |
*
|
|
| 32 |
* @version $Revision: 1.1 $
|
|
| 33 |
*/
|
|
| 34 |
public class ASProvider implements WSIFProvider { |
|
| 35 |
private RestClient client;
|
|
| 36 |
private AnyElementMarshaler marshaler;
|
|
| 37 |
|
|
| 38 | 0 |
public ASProvider(RestClient client, AnyElementMarshaler marshaler) {
|
| 39 | 0 |
this.client = client;
|
| 40 | 0 |
this.marshaler = marshaler;
|
| 41 |
} |
|
| 42 |
|
|
| 43 | 0 |
public WSIFPort createDynamicWSIFPort(Definition definition, Service service, Port port, WSIFDynamicTypeMap wsifDynamicTypeMap) throws WSIFException { |
| 44 | 0 |
return new ASPort(definition, service, port, wsifDynamicTypeMap, client, marshaler); |
| 45 |
} |
|
| 46 |
|
|
| 47 | 0 |
public String[] getAddressNamespaceURIs() {
|
| 48 | 0 |
return new String[] {"http://activesoap.codehaus.org/address/1.0"}; |
| 49 |
} |
|
| 50 |
|
|
| 51 | 0 |
public String[] getBindingNamespaceURIs() {
|
| 52 | 0 |
return new String[] {"http://activesoap.codehaus.org/binding/1.0"}; |
| 53 |
} |
|
| 54 |
} |
|
| 55 |
|
|
||||||||||