// Path: src/main/java/xdb/control/RequestParser.java
// public interface RequestParser {
// 
//     /**
//      * Derive content type (xml, html) from the URI (for example, by file extension).
//      * 
//      * @param request
//      *            The request.
//      * @return The content type.
//      */
//     public String deriveContentType(HttpServletRequest request);
// 
//     /**
//      * Derive parameter list from the request (for example, using request parameters).
//      * 
//      * @param request
//      *            The request.
//      * @return The parameters for this request.
//      */
//     public Map<String, String[]> deriveParameters(HttpServletRequest request);
// }


import org.w3c.dom.Element;
import xdb.control.RequestParser;
package xdb.request;



/**
 * Class for initializing request parsers from their configurations.
 */
public final class RequestParserInit {

    private RequestParserInit() {
    }

    /**
     * Initialize request parser from configuration.
     * 
     * @param configElement
     *            The configuration.
     * @param fileName
     *            The name of the configuration file.
     * @return The request parser.
     */
// Path: src/main/java/xdb/control/RequestParser.java
// public interface RequestParser {
// 
//     /**
//      * Derive content type (xml, html) from the URI (for example, by file extension).
//      * 
//      * @param request
//      *            The request.
//      * @return The content type.
//      */
//     public String deriveContentType(HttpServletRequest request);
// 
//     /**
//      * Derive parameter list from the request (for example, using request parameters).
//      * 
//      * @param request
//      *            The request.
//      * @return The parameters for this request.
//      */
//     public Map<String, String[]> deriveParameters(HttpServletRequest request);
// }


// Path: src/main/java/xdb/request/RequestParserInit.java
import org.w3c.dom.Element;
import xdb.control.RequestParser;

package xdb.request;



/**
 * Class for initializing request parsers from their configurations.
 */
public final class RequestParserInit {

    private RequestParserInit() {
    }

    /**
     * Initialize request parser from configuration.
     * 
     * @param configElement
     *            The configuration.
     * @param fileName
     *            The name of the configuration file.
     * @return The request parser.
     */
    public static RequestParser init(Element configElement, String fileName) {