Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
PETALS - PETALS Services Platform. Copyright (c) 2007 EBM Websourcing, http://www.ebmwebsourcing.com/ 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;
 
 import java.net.URI;
Component Development Kit constants

Author(s):
chamerling - EBM Websourcing
 
 public class Constants {

    
The component properties

Author(s):
Christophe HAMERLING (chamerling) - eBM WebSourcing
 
     public static class Component {
 
         public static final String JBI_XML = "jbi.xml";
 
         public static final String META_INF = "META-INF";
 
         public static final String ACKNOWLEDGEMENT_TIMEOUT = "acknowledgement-timeout";

        
The endpoint name used as the extension: auto-generated endpoint name extension
 
         public static final String AUTOGENERATED_ENDPOINT_NAME = "petals:autogenerate";
 
         public static final long DEFAULT_ACKNOWLEDGEMENT_TIMEOUT = 5000L;
 
         public static final String DEFAULT_IGNORED_STATUS = "DONE_AND_ERROR_IGNORED";
 
         public static final int DEFAULT_POOL_SIZE = 10;
 
         public static final int DEFAULT_ACCEPTOR_SIZE = 5;
 
         public static final String MEP = "mep";
 
     }

    
The interceptor constants

Author(s):
Christophe HAMERLING - eBM WebSourcing
Since:
3.0
 
     public static class Interceptor {
         
         public enum Phase {            
             SEND, SEND_RESPONSE, ACCEPT, ACCEPT_RESPONSE;
         }
     }

    
Constants for the JBI Message Exchange Patterns.

Author(s):
ofabre
gblondelle
 
     public enum MEPConstants {
         IN_ONLY_PATTERN("http://www.w3.org/2004/08/wsdl/in-only"),
         IN_OPTIONAL_OUT_PATTERN("http://www.w3.org/2004/08/wsdl/in-opt-out"),
         IN_OUT_PATTERN("http://www.w3.org/2004/08/wsdl/in-out"),
         ROBUST_IN_ONLY_PATTERN("http://www.w3.org/2004/08/wsdl/robust-in-only");

        

Parameters:
pattern
Returns:
 
         public static MEPConstants valueOf(final URI pattern) {
            MEPConstants result = null;
            if (pattern != null) {
                for (MEPConstants mep : MEPConstants.values()) {
                    if (mep.nameSpace.equals(pattern.toString())) {
                        result = mep;
                    }
                }
            }
            return result;
        }
        private final String nameSpace;
        private final URI mepURI;

        
Creates a new instance of Constants.MEPConstants

Parameters:
nameSpace
        private MEPConstants(final String nameSpace) {
            this. = nameSpace;
            try {
                this. = new URI(nameSpace);
            } catch (final URISyntaxException e) {
                throw new Error("Unexpected Error in JBI URI namespace syntax"e); // NOPMD
            }
        }

        

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(URI mep) {
            return toString().equals(mep.toString());
        }
        /*
         * (non-Javadoc)
         * 
         * @see java.lang.Enum#toString()
         */
        public String toString() {
            return this.;
        }
    }
    
    public static final String MANAGED_METHOD_PREFIX = "managedMethod";
    public static final String PARAMETER_PREFIX = "component.parameter";
    private Constants() {
    }
New to GrepCode? Check out our FAQ X