public interface AMRequestHandler<T>
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<AdaptiveMedia<T>> |
handleRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
Returns the requested
AdaptiveMedia instance wrapped in an Optional instance. |
java.util.Optional<AdaptiveMedia<T>> handleRequest(javax.servlet.http.HttpServletRequest httpServletRequest) throws java.io.IOException, javax.servlet.ServletException
AdaptiveMedia instance wrapped in an Optional instance. If no media is found matching the request, or an
application error is raised while fetching the media, an empty Optional is returned.httpServletRequest - the request to processnull Optional instance containing the
value (if any).java.io.IOException - if an IO error occurred while processing the requestjavax.servlet.ServletException - if any other processing error occurred