Class AbstractRequestEndpoint

java.lang.Object
org.aktin.broker.rest.AbstractRequestEndpoint
Direct Known Subclasses:
MyBrokerEndpoint, RequestAdminEndpoint

public abstract class AbstractRequestEndpoint
extends Object
  • Constructor Details

    • AbstractRequestEndpoint

      public AbstractRequestEndpoint()
  • Method Details

    • getTypeManager

      protected abstract RequestTypeManager getTypeManager()
    • getBroker

      protected abstract BrokerBackend getBroker()
    • removeCharsetInfo

      public static javax.ws.rs.core.MediaType removeCharsetInfo​(javax.ws.rs.core.MediaType type)
      Remove charset information from media type.
      Parameters:
      type - media type
      Returns:
      media type without charset info
    • getRequest

      protected javax.ws.rs.core.Response getRequest​(int requestId, List<javax.ws.rs.core.MediaType> accept) throws SQLException, IOException, javax.ws.rs.NotFoundException, javax.ws.rs.NotAcceptableException
      Throws:
      SQLException
      IOException
      javax.ws.rs.NotFoundException
      javax.ws.rs.NotAcceptableException