Class HttpMethod
java.lang.Object
org.apache.pekko.http.javadsl.model.HttpMethod
org.apache.pekko.http.scaladsl.model.HttpMethod
- All Implemented Interfaces:
- Serializable,- Renderable,- SingletonValueRenderable,- scala.Equals,- scala.Product
public final class HttpMethod
extends HttpMethod
implements SingletonValueRenderable, scala.Product, Serializable
The method of an HTTP request.
 param:  isSafe true if the resource should not be altered on the server
 param:  isIdempotent true if requests can be safely (& automatically) repeated
 param:  requestEntityAcceptance Expected if meaning of request entities is properly defined
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionHttpMethod(String value, boolean isSafe, boolean isIdempotent, RequestEntityAcceptance requestEntityAcceptance) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic HttpMethodCreates a custom method by name and assumes properties conservatively to be safe = false, idempotent = false and requestEntityAcceptance = Expected.static HttpMethodcustom(String name, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance) booleanReturns if requests with this method may contain an entity.booleanReturns if this method is "idempotent" as defined in http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-4.2.2booleanisSafe()Returns if this method is "safe" as defined in http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-4.2.1toString()value()Returns the name of the method.Methods inherited from class org.apache.pekko.http.javadsl.model.HttpMethodnameMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefixMethods inherited from interface org.apache.pekko.http.impl.util.SingletonValueRenderablerender
- 
Constructor Details- 
HttpMethodpublic HttpMethod(String value, boolean isSafe, boolean isIdempotent, RequestEntityAcceptance requestEntityAcceptance) 
 
- 
- 
Method Details- 
custompublic static HttpMethod custom(String name, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance) 
- 
customCreates a custom method by name and assumes properties conservatively to be safe = false, idempotent = false and requestEntityAcceptance = Expected.- Parameters:
- name- (undocumented)
- Returns:
- (undocumented)
 
- 
valueDescription copied from class:HttpMethodReturns the name of the method.- Specified by:
- valuein interface- SingletonValueRenderable
- Specified by:
- valuein class- HttpMethod
 
- 
isSafepublic boolean isSafe()Description copied from class:HttpMethodReturns if this method is "safe" as defined in http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-4.2.1- Specified by:
- isSafein class- HttpMethod
 
- 
isIdempotentpublic boolean isIdempotent()Description copied from class:HttpMethodReturns if this method is "idempotent" as defined in http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-4.2.2- Specified by:
- isIdempotentin class- HttpMethod
 
- 
requestEntityAcceptance
- 
isEntityAcceptedpublic boolean isEntityAccepted()Description copied from class:HttpMethodReturns if requests with this method may contain an entity.- Specified by:
- isEntityAcceptedin class- HttpMethod
 
- 
toString
 
-