
org.refcodes.net.HttpMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of refcodes-net Show documentation
Show all versions of refcodes-net Show documentation
This artifact provides networking (TCP/IP) related definitions and types being
used by REFCODES.ORG networking related functionality and artifacts.
package org.refcodes.net;
public enum HttpMethod {
GET, PUT, POST, DELETE, HEAD, PATCH, TRACE, OPTIONS, CONNECT;
public static HttpMethod fromString( String aHttpMethodText ) {
for( HttpMethod eMethod: values() ) {
if ( eMethod.name().equalsIgnoreCase( aHttpMethodText ) ) {
return eMethod;
}
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy