View Javadoc
1   /*
2    * Copyright (c) 2002-2019, Mairie de Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  package fr.paris.lutece.plugins.botpress.business;
35  
36  /*
37   * Copyright (c) 2002-2019, Mairie de Paris
38   * All rights reserved.
39   *
40   * Redistribution and use in source and binary forms, with or without
41   * modification, are permitted provided that the following conditions
42   * are met:
43   *
44   *  1. Redistributions of source code must retain the above copyright notice
45   *     and the following disclaimer.
46   *
47   *  2. Redistributions in binary form must reproduce the above copyright notice
48   *     and the following disclaimer in the documentation and/or other materials
49   *     provided with the distribution.
50   *
51   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
52   *     contributors may be used to endorse or promote products derived from
53   *     this software without specific prior written permission.
54   *
55   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
56   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
57   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
58   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
59   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
60   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
61   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
62   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
63   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
64   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
65   * POSSIBILITY OF SUCH DAMAGE.
66   *
67   * License 1.0
68   */
69  
70  /**
71   * RequestMessage
72   */
73  public class RequestMessage
74  {
75      private static final String TYPE_TEXT = "text";
76  
77      // Variables declarations
78      private String _strType;
79      private String _strText;
80  
81      public RequestMessage( String strMessage )
82      {
83          _strType = TYPE_TEXT;
84          _strText = strMessage;
85      }
86  
87      /**
88       * Returns the Type
89       *
90       * @return The Type
91       */
92      public String getType( )
93      {
94          return _strType;
95      }
96  
97      /**
98       * Sets the Type
99       *
100      * @param strType
101      *            The Type
102      */
103     public void setType( String strType )
104     {
105         _strType = strType;
106     }
107 
108     /**
109      * Returns the Text
110      *
111      * @return The Text
112      */
113     public String getText( )
114     {
115         return _strText;
116     }
117 
118     /**
119      * Sets the Text
120      *
121      * @param strText
122      *            The Text
123      */
124     public void setText( String strText )
125     {
126         _strText = strText;
127     }
128 }