001    /*
002     * Copyright 1999-2001,2004 The Apache Software Foundation.
003     * 
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    
017    package org.apache.commons.latka.jelly;
018    
019    import org.apache.commons.jelly.TagLibrary;
020    
021    /**
022     * A Jelly version of Latka
023     *
024     * @author  Morgan Delagrange
025     * @version
026     * $Id: LatkaTagLibrary.java 155424 2005-02-26 13:09:29Z dirkv $
027     */
028    public class LatkaTagLibrary extends TagLibrary {
029        
030        /** Creates a new instance of LatkaTagLibrary */
031        public LatkaTagLibrary() {
032            registerTag("credentials",
033                        CredentialsTag.class);
034            registerTag("param",
035                        ParameterTag.class);
036            registerTag("paramName",
037                        ParameterNameTag.class);
038            registerTag("paramValue",
039                        ParameterValueTag.class);        
040            registerTag("reportMessage", 
041                        ReportMessageTag.class);
042            registerTag("request",  
043                        RequestTag.class);
044            registerTag("requestBody",
045                        RequestBodyTag.class);
046            registerTag("requestHeader",
047                        RequestHeaderTag.class);
048            registerTag("session", 
049                        SessionTag.class);        
050            registerTag("suite", 
051                        SuiteTag.class);
052            registerTag("validate", 
053                        ValidateTag.class);
054            registerTag("byteLength", 
055                        org.apache.commons.latka.jelly.validators.ByteLengthTag.class);
056            registerTag("cookie",     
057                        org.apache.commons.latka.jelly.validators.CookieTag.class);
058            registerTag("goldenFile", 
059                        org.apache.commons.latka.jelly.validators.GoldenFileTag.class);
060            registerTag("maxRequestTime", 
061                        org.apache.commons.latka.jelly.validators.MaxRequestTimeTag.class);
062            registerTag("regexp",     
063                        org.apache.commons.latka.jelly.validators.RegexpTag.class);
064            registerTag("responseHeader", 
065                        org.apache.commons.latka.jelly.validators.ResponseHeaderTag.class);
066            registerTag("statusCode",
067                        org.apache.commons.latka.jelly.validators.StatusCodeTag.class);
068            registerTag("statusText",
069                        org.apache.commons.latka.jelly.validators.StatusTextTag.class);
070            registerTag("xpath",
071                        org.apache.commons.latka.jelly.validators.XPathTag.class);
072        }
073        
074    }