Class AbstractSharedRestInterface

java.lang.Object
org.apache.streampipes.rest.shared.impl.AbstractSharedRestInterface

public abstract class AbstractSharedRestInterface extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.http.ResponseEntity<Void>
     
    protected <T> org.springframework.http.ResponseEntity<T>
    badRequest(T entity)
     
    protected org.springframework.http.ResponseEntity<Void>
     
    protected <T> org.springframework.http.ResponseEntity<T>
    error(T entity, Integer statusCode)
     
    protected org.springframework.http.ResponseEntity<Void>
     
    protected <T> org.springframework.http.ResponseEntity<Void>
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      protected <T> org.springframework.http.ResponseEntity<Void> notFound()
    • serverError

      protected <T> org.springframework.http.ResponseEntity<T> serverError(T entity)
    • error

      protected <T> org.springframework.http.ResponseEntity<T> error(T entity, Integer statusCode)
    • badRequest

      protected org.springframework.http.ResponseEntity<Void> badRequest()
    • ok

      protected org.springframework.http.ResponseEntity<Void> ok()
    • created

      protected org.springframework.http.ResponseEntity<Void> created()
    • fail

      protected org.springframework.http.ResponseEntity<Void> fail()