View Javadoc

1   /*
2    * Copyright 2002,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.commons.jelly.tags.http;
18  
19  import java.util.Map;
20  
21  import org.apache.commons.jelly.TagLibrary;
22  
23  /***
24   * The set of jelly tags provided by Latka
25   *
26   * @author dion
27   * @version $Id: HttpTagLibrary.java 155420 2005-02-26 13:06:03Z dirkv $
28   */
29  public class HttpTagLibrary extends TagLibrary {
30  
31      /***
32       * Creates a new instance of LatkaTagLibrary
33       */
34      public HttpTagLibrary() {
35          registerTag("body", BodyTag.class);
36          registerTag("delete", DeleteTag.class);
37          registerTag("get", GetTag.class);
38          registerTag("head", HeadTag.class);
39          registerTag("header", HeaderTag.class);
40          registerTag("mppost", MultipartPostTag.class);
41          registerTag("options", OptionsTag.class);
42          registerTag("parameter", ParameterTag.class);
43          registerTag("part", PartTag.class);
44          registerTag("post", PostTag.class);
45          registerTag("put", PutTag.class);
46          registerTag("session", SessionTag.class);
47      }
48  
49      /***
50       * @see TagLibarary#getTagClasses()
51       *
52       * @return a Map of tag name to tag class
53       */
54      public Map getTagClasses() {
55          return super.getTagClasses();
56      }
57  
58  }
59