Clover coverage report - Apache Addressing - 1.0
Coverage timestamp: Tue Mar 22 2005 07:59:24 EST
file stats: LOC: 238   Methods: 0
NCLOC: 68   Classes: 1
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
Constants.java 50% 83.3% - 75%
coverage coverage
 1   
 /*
 2   
  * Copyright  1999-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   
  */
 17   
 package org.apache.axis.message.addressing;
 18   
 
 19   
 import javax.xml.namespace.QName;
 20   
 import java.util.HashSet;
 21   
 import java.util.Set;
 22   
 
 23   
 /**
 24   
  * Interface Constants
 25   
  * 
 26   
  * @author Davanum Srinivas (dims@yahoo.com)
 27   
  */
 28   
 public abstract class Constants {
 29   
 
 30   
     /**
 31   
      * A prefix for the WSA namespace.
 32   
      */
 33   
     public static final String NS_PREFIX_ADDRESSING = "wsa";
 34   
 
 35   
     /**
 36   
      * Namespace for 2003/03 revision of WSA schema.
 37   
      */
 38   
     public static final String NS_URI_ADDRESSING_2003_03 =
 39   
         "http://schemas.xmlsoap.org/ws/2003/03/addressing";
 40   
 
 41   
     /**
 42   
      * Namespace for 2004/03 revision of WSA schema.
 43   
      */
 44   
     public static final String NS_URI_ADDRESSING_2004_03 =
 45   
         "http://schemas.xmlsoap.org/ws/2004/03/addressing";
 46   
 
 47   
     /**
 48   
      * Namespace for 2004/08 revision of WSA schema.
 49   
      */
 50   
     public static final String NS_URI_ADDRESSING_2004_08 =
 51   
         "http://schemas.xmlsoap.org/ws/2004/08/addressing";
 52   
 
 53   
     /**
 54   
      * Field NS_URI_ADDRESSING (default)
 55   
      */
 56   
     public static final String NS_URI_ADDRESSING_DEFAULT =
 57   
         NS_URI_ADDRESSING_2004_08;
 58   
 
 59   
     /**
 60   
      * A set that contains the namespace URIs (as Strings) for the various revisions of
 61   
      * Addressing that we support.
 62   
      */
 63   
     public static final Set ADDRESSING_NS_URI_SET = new HashSet();
 64   
     static {
 65  4
         ADDRESSING_NS_URI_SET.add( NS_URI_ADDRESSING_2003_03 );
 66  4
         ADDRESSING_NS_URI_SET.add( NS_URI_ADDRESSING_2004_03 );
 67  4
         ADDRESSING_NS_URI_SET.add( NS_URI_ADDRESSING_2004_08 );
 68   
     }
 69   
 
 70   
     /**
 71   
      * Field FAULT_ACTION
 72   
      */
 73   
     public static final String FAULT_ACTION = NS_URI_ADDRESSING_DEFAULT +
 74   
             "/fault";
 75   
 
 76   
     /**
 77   
      * Field NS_URI_ANONYMOUS
 78   
      */
 79   
     public static final String NS_URI_ANONYMOUS = NS_URI_ADDRESSING_DEFAULT
 80   
             + "/role/anonymous";
 81   
 
 82   
     /**
 83   
      * Field ENDPOINT_REFERENCE
 84   
      */
 85   
     public static final String ENDPOINT_REFERENCE = "EndpointReference";
 86   
 
 87   
     /**
 88   
      * Field MESSAGE_ID
 89   
      */
 90   
     public static final String MESSAGE_ID = "MessageID";
 91   
 
 92   
     /**
 93   
      * Field RELATES_TO
 94   
      */
 95   
     public static final String RELATES_TO = "RelatesTo";
 96   
 
 97   
     /**
 98   
      * Field RELATIONSHIP_TYPE
 99   
      */
 100   
     public static final String RELATIONSHIP_TYPE = "RelationshipType";
 101   
 
 102   
     /**
 103   
      * Field ACTION
 104   
      */
 105   
     public static final String ACTION = "Action";
 106   
 
 107   
     /**
 108   
      * Field ADDRESS
 109   
      */
 110   
     public static final String ADDRESS = "Address";
 111   
 
 112   
     /**
 113   
      * Field REFERENCE_PROPERTIES
 114   
      */
 115   
     public static final String REFERENCE_PROPERTIES = "ReferenceProperties";
 116   
 
 117   
     /**
 118   
      * Field SERVICE_NAME
 119   
      */
 120   
     public static final String SERVICE_NAME = "ServiceName";
 121   
 
 122   
     /**
 123   
      * Field PORT_NAME
 124   
      */
 125   
     public static final String PORT_NAME = "PortName";
 126   
 
 127   
     /**
 128   
      * Field PORT_TYPE
 129   
      */
 130   
     public static final String PORT_TYPE = "PortType";
 131   
 
 132   
     /**
 133   
      * Field RESPONSE
 134   
      */
 135   
     public static final String RESPONSE = "Response";
 136   
 
 137   
     /**
 138   
      * Field REPLY
 139   
      */
 140   
     public static final String REPLY = "Reply";
 141   
 
 142   
     /**
 143   
      * Field TO
 144   
      */
 145   
     public static final String TO = "To";
 146   
 
 147   
     /**
 148   
      * Field REPLY_TO
 149   
      */
 150   
     public static final String REPLY_TO = "ReplyTo";
 151   
 
 152   
     /**
 153   
      * Field FAULT_TO
 154   
      */
 155   
     public static final String FAULT_TO = "FaultTo";
 156   
 
 157   
     /**
 158   
      * Field FROM
 159   
      */
 160   
     public static final String FROM = "From";
 161   
 
 162   
     /**
 163   
      * Field RECIPIENT
 164   
      */
 165   
     public static final String RECIPIENT = "Recipient";
 166   
 
 167   
     /**
 168   
      * Field QNAME_RESPONSE
 169   
      */
 170   
     public static final QName QNAME_RESPONSE; 
 171   
 
 172   
     /**
 173   
      * Internal property for passing some WSA headers from
 174   
      * the generated Stub class to the handlers.
 175   
      */
 176   
     public static final String ENV_ADDRESSING_SHARED_HEADERS =
 177   
         "org.apache.axis.message.addressing.SHARED_HEADERS";
 178   
 
 179   
     /**
 180   
      * Field ENV_ADDRESSING_REQUEST_HEADERS
 181   
      */
 182   
     public static final String ENV_ADDRESSING_REQUEST_HEADERS =
 183   
         "org.apache.axis.message.addressing.REQUEST.HEADERS";
 184   
 
 185   
     /**
 186   
      * Field ENV_ADDRESSING_RESPONSE_HEADERS
 187   
      */
 188   
     public static final String ENV_ADDRESSING_RESPONSE_HEADERS =
 189   
         "org.apache.axis.message.addressing.RESPONSE.HEADERS";
 190   
     
 191   
     /**
 192   
      * Field ENV_ADDRESSING_FROM_URI
 193   
      */
 194   
     public static final String ENV_ADDRESSING_FROM_URI =
 195   
         "addressing.from.URI";
 196   
 
 197   
     /**
 198   
      * Field ENV_ADDRESSING_REPLYTO_URI
 199   
      */
 200   
     public static final String ENV_ADDRESSING_REPLYTO_URI =
 201   
         "addressing.replyTo.URI";
 202   
     
 203   
     /**
 204   
      * Field ENV_ADDRESSING_FAULTTO_URI
 205   
      */
 206   
     public static final String ENV_ADDRESSING_FAULTTO_URI =
 207   
         "addressing.faultTo.URI";
 208   
     
 209   
     /**
 210   
      * SOAP message context prop that expects a value of "true" or "false".
 211   
      */
 212   
     public static final String ENV_ADDRESSING_SET_MUST_UNDERSTAND =
 213   
         "addressing.setMustUnderstand";
 214   
     
 215   
     /**
 216   
      * SOAP message context prop that expects a value of "true" or "false".
 217   
      */
 218   
     public static final String ENV_ADDRESSING_SEND_REPLYTO =
 219   
         "addressing.sendReplyTo";      
 220   
 
 221   
     /**
 222   
      * Field QNAME_ACTION
 223   
      */
 224   
     public static final QName QNAME_ACTION = 
 225   
         new QName(NS_URI_ADDRESSING_DEFAULT, ACTION);
 226   
 
 227   
     static {
 228  4
         if (NS_URI_ADDRESSING_DEFAULT.equals(NS_URI_ADDRESSING_2003_03)) {
 229  0
             QNAME_RESPONSE = new QName(NS_URI_ADDRESSING_DEFAULT, RESPONSE);
 230   
         } else {
 231  4
             QNAME_RESPONSE = new QName(NS_URI_ADDRESSING_DEFAULT, REPLY);
 232   
         }
 233   
     }
 234   
     
 235   
 }
 236   
 
 237   
 
 238