- All Superinterfaces:
HttpMethodAccessor
,HttpMethodAccessor.HttpMethodMutator
- Enclosing interface:
- HttpMethodAccessor
public static interface HttpMethodAccessor.HttpMethodProperty
extends HttpMethodAccessor, HttpMethodAccessor.HttpMethodMutator
Provides a HTTP-Method property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.web.HttpMethodAccessor
HttpMethodAccessor.HttpMethodBuilder<B extends HttpMethodAccessor.HttpMethodBuilder<B>>, HttpMethodAccessor.HttpMethodMutator, HttpMethodAccessor.HttpMethodProperty
-
Method Summary
Modifier and TypeMethodDescriptiondefault HttpMethod
letHttpMethod
(HttpMethod aHttpMethod) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenHttpMethod
(setter) as ofHttpMethodAccessor.HttpMethodMutator.setHttpMethod(HttpMethod)
and returns the very same value (getter).Methods inherited from interface org.refcodes.web.HttpMethodAccessor
getHttpMethod
Methods inherited from interface org.refcodes.web.HttpMethodAccessor.HttpMethodMutator
setHttpMethod
-
Method Details
-
letHttpMethod
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenHttpMethod
(setter) as ofHttpMethodAccessor.HttpMethodMutator.setHttpMethod(HttpMethod)
and returns the very same value (getter).- Parameters:
aHttpMethod
- TheHttpMethod
to set (viaHttpMethodAccessor.HttpMethodMutator.setHttpMethod(HttpMethod)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-