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

org.nuiton.io.rest.RestRequest Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
/*
 * #%L
 * Maven helper plugin
 * 
 * $Id: RestRequest.java 776 2010-10-23 11:44:57Z tchemit $
 * $HeadURL: http://svn.nuiton.org/svn/maven-helper-plugin/tags/maven-helper-plugin-1.2.10/src/main/java/org/nuiton/io/rest/RestRequest.java $
 * %%
 * Copyright (C) 2009 - 2010 Tony Chemit, CodeLutin
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as 
 * published by the Free Software Foundation, either version 3 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public 
 * License along with this program.  If not, see
 * .
 * #L%
 */

package org.nuiton.io.rest;

import java.io.File;
import java.util.Map;

/**
 * The contract of a rest request.
 *
 * @author tchemit 
 * @since 1.0.3
 */
public interface RestRequest {
    /** @return the splitted path to add to url */
    String[] getPath();

    /**
     * @return an array of pair (parameter name - parameter value) to pass
     *         to request
     */
    String[] getParameters();

    /** @return the map of attachment to pass to request */
    Map getAttachments();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy