public class ResourceServer
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
static File |
confHome |
static String |
PATH_TO_RESOURCES
Path to resources; e.g.
|
Constructor and Description |
---|
ResourceServer(ModuleContext mcontext) |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
String |
getMimeType(String name)
Determine mime type of the resource.
|
boolean |
isAuthorized(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Checks if the resource Requester is authorized to access resource
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static File confHome
public static String PATH_TO_RESOURCES
public ResourceServer(ModuleContext mcontext)
public String getMimeType(String name)
name
- resoruce nameprotected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public boolean isAuthorized(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
req
- The requestresp
- The responseprotected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
Copyright © 2018 universAAL Consortium. All rights reserved.