Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
COOS - Connected Objects Operating System (www.connectedobjects.org). Copyright (C) 2009 Telenor ASA and Tellu AS. All rights reserved. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. You may also contact one of the following for additional information: Telenor ASA, Snaroyveien 30, N-1331 Fornebu, Norway (www.telenor.no) Tellu AS, Hagalokkveien 13, N-1383 Asker, Norway (www.tellu.no)
 
 package org.coos.messaging;
 

Author(s):
Knut Eilif Husa, Tellu AS Represents the kind of message exchange pattern
 
 public class ExchangePattern {
 	public static final String OutOnly = "OutOnly";
 	public static final String RobustOutOnly = "RobustOutOnly";
 	public static final String OutIn = "OutIn";
 	public static final String OutOptionalIn = "OutOptionalIn";
 	public static final String InOnly = "InOnly";
 	public static final String RobustInOnly = "RobustInOnly";
 	public static final String InOut = "InOut";
 	public static final String InOptionalOut = "InOptionalOut";
 
 	protected static final Hashtable map = new Hashtable();
 
 
 	public ExchangePattern(String exchangePattern) {
 		this. = exchangePattern;
 	}

Returns the WSDL URI for this message exchange pattern

Returns:
the WSDL URI for this message exchange pattern
 
 	public static String getWsdlUri(String exchangePattern) {
 		if (exchangePattern.equals())
 			return "http://www.w3.org/ns/wsdl/out-only";
 		if (exchangePattern.equals())
 			return "http://www.w3.org/ns/wsdl/out-optional-in";
 		if (exchangePattern.equals())
 			return "http://www.w3.org/ns/wsdl/out-in";
 		if (exchangePattern.equals())
 			return "http://www.w3.org/ns/wsdl/in-out";
 		if (exchangePattern.equals())
 			return "http://www.w3.org/ns/wsdl/in-only";
 		if (exchangePattern.equals())
 			return "http://www.w3.org/ns/wsdl/in-optional_out";
 		if (exchangePattern.equals())
 			return "http://www.w3.org/ns/wsdl/robust-out-only";
 		if (exchangePattern.equals())
 			return "http://www.w3.org/ns/wsdl/robust-in-only";
 
 		throw new IllegalArgumentException("Unknown message exchange pattern: " + exchangePattern);
 
 	}

Return true if there can be an IN message
 
 	public boolean isInCapable() {
 			return false;
 		else
 			return true;
 
 	}

Return true if there can be an OUT message
 
 	public boolean isOutCapable() {
 			return false;
 		else
 			return true;
 
 	}

Return true if there can be a FAULT message
	public boolean isFaultCapable() {
			return false;
		else
			return true;
	}
	public boolean equals(Object obj) {
		if (obj instanceof String && .equals(obj)) {
			return true;
		}
		return super.equals(obj);
	}
	public String toString() {
	}

Converts the WSDL URI into a ExchangePattern instance
	/*
	 * public static ExchangePattern fromWsdlUri(String wsdlUri) { return
	 * (ExchangePattern) map.get(wsdlUri); }
	 * 
	 * static { for (int i = 1; i < 7; i++) { String uri = getWsdlUri(i); String
	 * pattern = null; populatePattern(uri, pattern); } }
	 * 
	 * private static void populatePattern(String uri, String pattern) {
	 * map.put(uri, pattern); String name = uri.substring(uri.lastIndexOf('/') +
	 * 1); map.put("http://www.w3.org/2004/08/wsdl/" + name, pattern);
	 * map.put("http://www.w3.org/2006/01/wsdl/" + name, pattern); }
	 */
	public boolean isOutBoundInitiated() {
	}
	public boolean isInBoundInitiated() {
	}
New to GrepCode? Check out our FAQ X