001/* 
002 * JKNIV, whinstone one contract to access your database.
003 * 
004 * Copyright (C) 2017, the original author or authors.
005 *
006 * This library is free software; you can redistribute it and/or
007 * modify it under the terms of the GNU Lesser General Public
008 * License as published by the Free Software Foundation; either
009 * version 2.1 of the License.
010 * 
011 * This library is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014 * Lesser General Public License for more details.
015 * 
016 * You should have received a copy of the GNU Lesser General Public
017 * License along with this library; if not, write to the Free Software Foundation, Inc., 
018 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
019 */
020package net.sf.jkniv.whinstone.couchdb.commands;
021
022import net.sf.jkniv.whinstone.commands.Command;
023
024/**
025 * 
026 * @author Alisson Gomes
027 * @since 0.6.0
028 *
029 */
030public interface CouchCommand extends Command
031{
032    /** 200 OK */
033    static final int HTTP_OK = 200;
034    /**  201 Created */
035    static final int HTTP_CREATED = 201;
036    /** 202 Accepted */
037    static final int HTTP_ACCEPTED = 202;
038    /** 204 No Content */
039    static final int HTTP_NO_CONTENT = 204;
040    /** 205 Reset Content */
041    static final int HTTP_RESET_CONTENT = 205;
042    /**  304 Not Modified */
043    static final int HTTP_NOT_MODIFIED = 304;
044    /**  404 Not Found */
045    static final int HTTP_NOT_FOUND = 404;
046    /** 400 Bad Request */
047    static final int HTTP_BAD_REQUEST = 400;
048    /**  417 Expectation FaileD */
049    static final int HTTP_EXPECTATION_FAILED = 407;
050    
051    HttpMethod asPut();
052
053    HttpMethod asPost();
054    
055    HttpMethod asDelete();
056
057    HttpMethod asGet();
058
059    HttpMethod asHead();
060
061    String getBody();
062}