Class AbstractSharedRestInterface
java.lang.Object
org.apache.streampipes.rest.shared.impl.AbstractSharedRestInterface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.http.ResponseEntity<Void>protected <T> org.springframework.http.ResponseEntity<T>badRequest(T entity) protected org.springframework.http.ResponseEntity<Void>created()protected <T> org.springframework.http.ResponseEntity<T>protected org.springframework.http.ResponseEntity<Void>fail()protected <T> org.springframework.http.ResponseEntity<Void>notFound()protected <T> org.springframework.http.ResponseEntity<T>notFound(T entity) protected org.springframework.http.ResponseEntity<Void>ok()protected <T> org.springframework.http.ResponseEntity<T>ok(T entity) protected <T> org.springframework.http.ResponseEntity<T>serverError(T entity)
-
Constructor Details
-
AbstractSharedRestInterface
public AbstractSharedRestInterface()
-
-
Method Details
-
ok
protected <T> org.springframework.http.ResponseEntity<T> ok(T entity) -
badRequest
protected <T> org.springframework.http.ResponseEntity<T> badRequest(T entity) -
notFound
protected <T> org.springframework.http.ResponseEntity<T> notFound(T entity) -
notFound
-
serverError
protected <T> org.springframework.http.ResponseEntity<T> serverError(T entity) -
error
-
badRequest
-
ok
-
created
-
fail
-