Commonize into PathUtils; On Linux/BSD try to use xdg-open/x-www-browser if Java...
[SquirrelJME.git] / buildSrc / src / main / java / cc / squirreljme / plugin / util / SimpleHTTPMethod.java
blob256c82f25d5dd44550c86c9babdce2433043e761
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc.squirreljme.plugin.util;
12 /**
13 * This represents the HTTP method.
15 * @since 2020/06/26
17 public enum SimpleHTTPMethod
19 /** Get. */
20 GET(false, true),
22 /** Put. */
23 PUT(true, false),
25 /** Post. */
26 POST(true, true),
28 /* End. */
31 /** Has request body? */
32 public final boolean hasRequestBody;
34 /** Has response body? */
35 public final boolean hasResponseBody;
37 /**
38 * Represents the HTTP method.
40 * @param __hasRequestBody Does this have a request body?
41 * @param __hasResponseBody Does this have a response body?
42 * @since 2020/06/26
44 SimpleHTTPMethod(boolean __hasRequestBody, boolean __hasResponseBody)
46 this.hasRequestBody = __hasRequestBody;
47 this.hasResponseBody = __hasResponseBody;