org.apache.ambari.view
Interface ViewResourceHandler


public interface ViewResourceHandler

Handler object available to the view components used to allow the API framework to handle the request.


Nested Class Summary
static class ViewResourceHandler.MediaType
          Supported media types.
static class ViewResourceHandler.RequestType
          Request types.
 
Method Summary
 javax.ws.rs.core.Response handleRequest(javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo ui, String resourceId)
          Handle the API request with a request type of GET and media type of TEXT_PLAIN.
 javax.ws.rs.core.Response handleRequest(javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo ui, ViewResourceHandler.RequestType requestType, ViewResourceHandler.MediaType mediaType, String resourceId)
          Handle the API request for the given request and media type.
 

Method Detail

handleRequest

javax.ws.rs.core.Response handleRequest(javax.ws.rs.core.HttpHeaders headers,
                                        javax.ws.rs.core.UriInfo ui,
                                        ViewResourceHandler.RequestType requestType,
                                        ViewResourceHandler.MediaType mediaType,
                                        String resourceId)
Handle the API request for the given request and media type.

Parameters:
headers - the headers
ui - the URI info
requestType - the request type
mediaType - the requested media type
resourceId - the resource id; may be null for collection resources
Returns:
the response

handleRequest

javax.ws.rs.core.Response handleRequest(javax.ws.rs.core.HttpHeaders headers,
                                        javax.ws.rs.core.UriInfo ui,
                                        String resourceId)
Handle the API request with a request type of GET and media type of TEXT_PLAIN.

Parameters:
headers - the headers
ui - the URI info
resourceId - the resource id; may be null for collection resources
Returns:
the response


Copyright © 2015 Apache Software Foundation. All rights reserved.