Coverage Report - org.mule.transport.http.i18n.HttpMessages
 
Classes in this File Line Coverage Branch Coverage Complexity
HttpMessages
27%
4/15
N/A
1
 
 1  
 /*
 2  
  * $Id: HttpMessages.java 12238 2008-07-06 22:13:50Z rossmason $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.transport.http.i18n;
 12  
 
 13  
 import org.mule.config.i18n.Message;
 14  
 import org.mule.config.i18n.MessageFactory;
 15  
 
 16  
 import java.net.URI;
 17  
 
 18  0
 public class HttpMessages extends MessageFactory
 19  
 {
 20  2
     private static final String BUNDLE_PATH = getBundlePath("http");
 21  
 
 22  
     public static Message requestFailedWithStatus(String string)
 23  
     {
 24  0
         return createMessage(BUNDLE_PATH, 3, string);
 25  
     }
 26  
 
 27  
     public static Message unableToGetEndpointUri(String requestURI)
 28  
     {
 29  0
         return createMessage(BUNDLE_PATH, 4, requestURI);
 30  
     }
 31  
 
 32  
     public static Message receiverPropertyNotSet()
 33  
     {
 34  0
         return createMessage(BUNDLE_PATH, 7);
 35  
     }
 36  
 
 37  
     public static Message httpParameterNotSet(String string)
 38  
     {
 39  0
         return createMessage(BUNDLE_PATH, 8, string);
 40  
     }
 41  
 
 42  
 
 43  
     public static Message malformedSyntax()
 44  
     {
 45  2
         return createMessage(BUNDLE_PATH, 11);
 46  
     }
 47  
 
 48  
     public static Message methodNotAllowed(String method)
 49  
     {
 50  0
         return createMessage(BUNDLE_PATH, 12, method);
 51  
     }
 52  
 
 53  
     public static Message failedToConnect(URI uri)
 54  
     {
 55  0
         return createMessage(BUNDLE_PATH, 13, uri);
 56  
     }
 57  
 
 58  
     public static Message cannotBindToAddress(String path)
 59  
     {
 60  2
         return createMessage(BUNDLE_PATH, 14, path);
 61  
     }
 62  
 
 63  
     public static Message eventPropertyNotSetCannotProcessRequest(String property)
 64  
     {
 65  0
         return createMessage(BUNDLE_PATH, 15, property);
 66  
     }
 67  
 
 68  
     public static Message unsupportedMethod(String method)
 69  
     {
 70  0
         return createMessage(BUNDLE_PATH, 16, method);
 71  
     }
 72  
 
 73  
     public static Message couldNotSendExpect100()
 74  
     {
 75  0
         return createMessage(BUNDLE_PATH, 17);
 76  
     }
 77  
 
 78  
     public static Message requestLineIsMalformed(String line)
 79  
     {
 80  2
         return createMessage(BUNDLE_PATH, 18, line);
 81  
     }
 82  
 
 83  
     public static Message pollingReciverCannotbeUsed()
 84  
     {
 85  0
         return createMessage(BUNDLE_PATH, 19);
 86  
     }
 87  
 }
 88  
 
 89