View Javadoc

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  public class HttpMessages extends MessageFactory
19  {
20      private static final String BUNDLE_PATH = getBundlePath("http");
21  
22      public static Message requestFailedWithStatus(String string)
23      {
24          return createMessage(BUNDLE_PATH, 3, string);
25      }
26  
27      public static Message unableToGetEndpointUri(String requestURI)
28      {
29          return createMessage(BUNDLE_PATH, 4, requestURI);
30      }
31  
32      public static Message receiverPropertyNotSet()
33      {
34          return createMessage(BUNDLE_PATH, 7);
35      }
36  
37      public static Message httpParameterNotSet(String string)
38      {
39          return createMessage(BUNDLE_PATH, 8, string);
40      }
41  
42  
43      public static Message malformedSyntax()
44      {
45          return createMessage(BUNDLE_PATH, 11);
46      }
47  
48      public static Message methodNotAllowed(String method)
49      {
50          return createMessage(BUNDLE_PATH, 12, method);
51      }
52  
53      public static Message failedToConnect(URI uri)
54      {
55          return createMessage(BUNDLE_PATH, 13, uri);
56      }
57  
58      public static Message cannotBindToAddress(String path)
59      {
60          return createMessage(BUNDLE_PATH, 14, path);
61      }
62  
63      public static Message eventPropertyNotSetCannotProcessRequest(String property)
64      {
65          return createMessage(BUNDLE_PATH, 15, property);
66      }
67  
68      public static Message unsupportedMethod(String method)
69      {
70          return createMessage(BUNDLE_PATH, 16, method);
71      }
72  
73      public static Message couldNotSendExpect100()
74      {
75          return createMessage(BUNDLE_PATH, 17);
76      }
77  
78      public static Message requestLineIsMalformed(String line)
79      {
80          return createMessage(BUNDLE_PATH, 18, line);
81      }
82  
83      public static Message pollingReciverCannotbeUsed()
84      {
85          return createMessage(BUNDLE_PATH, 19);
86      }
87  }
88  
89