Class FileResource
java.lang.Object
is.galia.resource.AbstractResource
is.galia.resource.FileResource
- All Implemented Interfaces:
Resource
Handles requests for static files.
When Application.ENVIRONMENT_VM_ARGUMENT is set to Application.DEVELOPMENT_ENVIRONMENT, the files are read from the
filesystem. Otherwise they are loaded by the class loader.
-
Field Summary
Fields inherited from class is.galia.resource.AbstractResource
PUBLIC_IDENTIFIER_HEADER -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class is.galia.resource.AbstractResource
authenticateUsingBasic, decodePathComponent, destroy, doDELETE, doHEAD, doInit, doOPTIONS, doPATCH, doPOST, doPUT, getCanonicalClientIPAddress, getCommonTemplateVars, getDelegate, getLocalBasePath, getPreferredMediaTypes, getPublicReference, getPublicRootReference, getRepresentationDisposition, getRequest, getRequestContext, getResponse, negotiateContentType, setRequest, setResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface is.galia.resource.Resource
destroy, doDELETE, doHEAD, doInit, doOPTIONS, doPATCH, doPOST, doPUT, getRequest, getResponse, setRequest, setResponse
-
Constructor Details
-
FileResource
public FileResource()
-
-
Method Details
-
getLogger
protected org.slf4j.Logger getLogger()- Specified by:
getLoggerin classAbstractResource
-
getRoutes
Description copied from class:AbstractResourcePart of theResourcecontract.- Specified by:
getRoutesin interfaceResource- Specified by:
getRoutesin classAbstractResource- Returns:
- All routes to which the instance responds.
-
doGET
Description copied from class:AbstractResourceMust be overridden by implementations that support
GET.Overrides must not call
super.- Specified by:
doGETin interfaceResource- Overrides:
doGETin classAbstractResource- Throws:
Exception- upon any error. This may be aResourceExceptionto enable a custom status.- See Also:
-