Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
PETALS - PETALS Services Platform. Copyright (c) 2008 OW2 Consortium, http://www.ow2.org/ 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 2.1 of the License, or (at your option) any later version. This library 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 library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ------------------------------------------------------------------------- $Id$ -------------------------------------------------------------------------
package org.ow2.petals.component.framework.constants;
Soap envelope constant

Author(s):
Mathieu CARROLLE
Christophe DENEUX (Capgemini Sud)
public enum SoapEnvelope {
    SOAP11_NS("http://schemas.xmlsoap.org/soap/envelope/"),
    SOAP12_NS("http://www.w3.org/2003/05/soap-envelope");
    
    

Parameters:
pattern
Returns:
    public static SoapEnvelope valueOf(final URI pattern) {
        SoapEnvelope result = null;
        if (pattern != null) {
            for (SoapEnvelope soap : SoapEnvelope.values()) {
                if (soap.nameSpace.equals(pattern.toString())) {
                    result = soap;
                }
            }
        }
        return result;
    }
    
    private final String nameSpace;
    private final URI soapURI;
    
    private SoapEnvelope(final String nameSpace) {
        this. = nameSpace;
        this. = URI.create(nameSpace);
    }
    
    

Returns:
    public URI value() {
        return this.;
    }

    
Please use this equals method instead of using : value().equals(mep) which is almost 10 times slower...

Parameters:
mep
Returns:
    public boolean equals(final URI mep) {
        return this..equals(mep.toString());
    }
New to GrepCode? Check out our FAQ X