View Javadoc

1   /*
2    * $Id: HttpMessages.java 8105 2007-08-29 17:21:12Z dandiep $
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.providers.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      public static Message noConnectorForProtocolServlet()
43      {
44          return createMessage(BUNDLE_PATH, 9);
45      }
46  
47      public static Message noServletConnectorFound(String name)
48      {
49          return createMessage(BUNDLE_PATH, 10, name);
50      }
51  
52      public static Message malformedSyntax()
53      {
54          return createMessage(BUNDLE_PATH, 11);
55      }
56  
57      public static Message methodNotAllowed(String method)
58      {
59          return createMessage(BUNDLE_PATH, 12, method);
60      }
61  
62      public static Message failedToConnect(URI uri)
63      {
64          return createMessage(BUNDLE_PATH, 13, uri);
65      }
66  
67      public static Message cannotBindToAddress(String path)
68      {
69          return createMessage(BUNDLE_PATH, 14, path);
70      }
71  
72      public static Message eventPropertyNotSetCannotProcessRequest(String property)
73      {
74          return createMessage(BUNDLE_PATH, 15, property);
75      }
76  
77      public static Message unsupportedMethod(String method)
78      {
79          return createMessage(BUNDLE_PATH, 16, method);
80      }
81  }
82  
83