Class IdempotencyEndpoint
java.lang.Object
com.github.damianwajser.idempotency.configuration.IdempotencyEndpoint
public class IdempotencyEndpoint extends Object
-
Constructor Summary
Constructors Constructor Description IdempotencyEndpoint(String endpoint, Set<org.springframework.http.HttpMethod> methods)IdempotencyEndpoint(String endpoint, Set<org.springframework.http.HttpMethod> methods, IdempotencyKeyGenerator<Object> generator) -
Method Summary
Modifier and Type Method Description StringgenerateKey(javax.servlet.http.HttpServletRequest request)StringgetEndpoint()booleanisAppicable(org.springframework.http.HttpMethod httpMethod)
-
Constructor Details
-
IdempotencyEndpoint
-
IdempotencyEndpoint
public IdempotencyEndpoint(String endpoint, Set<org.springframework.http.HttpMethod> methods, IdempotencyKeyGenerator<Object> generator)
-
-
Method Details
-
generateKey
public String generateKey(javax.servlet.http.HttpServletRequest request) throws IOException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException -
getEndpoint
-
isAppicable
public boolean isAppicable(org.springframework.http.HttpMethod httpMethod)
-