Class SafeMethod

java.lang.Object
org.dmfs.httpessentials.methods.AbstractMethod
org.dmfs.httpessentials.methods.SafeMethod
All Implemented Interfaces:
HttpMethod

public final class SafeMethod extends AbstractMethod
A safe HttpMethod.
See Also:
  • Constructor Details

    • SafeMethod

      public SafeMethod(String verb, boolean supportsRequestPayload)
  • Method Details

    • isSafe

      public boolean isSafe()
      Description copied from interface: HttpMethod
      Returns if this request method is safe, which means that the request is not intended and not expected to change any state on the server. In effect the semantics are to be considered read-only.
      See Also:
    • isIdempotent

      public boolean isIdempotent()
      Description copied from interface: HttpMethod
      Returns if this request method is idempotent, which means that sending multiple identical requests with that method has the same effect as sending one single request to the server.
      See Also: