All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.linkeddatafragments.fragments.IFragmentRequestParser Maven / Gradle / Ivy

package org.linkeddatafragments.fragments;

import org.linkeddatafragments.config.ConfigReader;

import javax.servlet.http.HttpServletRequest;

/**
 * Parses HTTP requests into specific {@link ILinkedDataFragmentRequest}s.
 *
 * @author Olaf Hartig
 */
public interface IFragmentRequestParser
{
    /**
     * Parses the given HTTP request into a specific
     * {@link ILinkedDataFragmentRequest}.
     *
     * @param httpRequest
     * @param config
     * @return
     * @throws IllegalArgumentException
     *         If the given HTTP request cannot be interpreted (perhaps due to
     *         missing request parameters).
     */
    ILinkedDataFragmentRequest parseIntoFragmentRequest(
            final HttpServletRequest httpRequest,
            final ConfigReader config)
                    throws IllegalArgumentException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy