Package eu.webtoolkit.jwt
Class WWebRootDataInfo
- java.lang.Object
-
- eu.webtoolkit.jwt.WAbstractDataInfo
-
- eu.webtoolkit.jwt.WWebRootDataInfo
-
public class WWebRootDataInfo extends WAbstractDataInfo
A class that stores informations about a file in the WebRootThis class stores the URL and the file path of a file inside of the WebRoot.
-
-
Constructor Summary
Constructors Constructor Description WWebRootDataInfo(java.lang.String virtualPath)Creates aWWebRootDataInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFilePath()Returns a path to a file containing the data.java.lang.StringgetUrl()Returns the URL of the data.booleanhasFilePath()Returns whether this contains a file path.booleanhasUrl()Returns whether this contains a URL.voidsetVirtualPath(java.lang.String virtualPath)Sets the virtual path.-
Methods inherited from class eu.webtoolkit.jwt.WAbstractDataInfo
getDataUri, getName, hasDataUri
-
-
-
-
Constructor Detail
-
WWebRootDataInfo
public WWebRootDataInfo(java.lang.String virtualPath)
Creates aWWebRootDataInfo.Creates a
WWebRootDataInfowith the givenvirtualPath.
-
-
Method Detail
-
setVirtualPath
public void setVirtualPath(java.lang.String virtualPath)
Sets the virtual path.
-
getFilePath
public java.lang.String getFilePath()
Description copied from class:WAbstractDataInfoReturns a path to a file containing the data.This returns a path to a file containing the data. This should point to a path that exists on the system.
By default this will throw an exception.
Warning: If you reimplement this function, you must also reimplement
hasFilePath()- Overrides:
getFilePathin classWAbstractDataInfo- See Also:
WAbstractDataInfo.hasFilePath()
-
getUrl
public java.lang.String getUrl()
Description copied from class:WAbstractDataInfoReturns the URL of the data.This returns the URL of the data. This can be both an absolute URL or a URL relative to the application's base URL.
By default this will throw an exception.
Warning: If you reimplement this function, you must also reimplement
hasUrl()- Overrides:
getUrlin classWAbstractDataInfo- See Also:
WAbstractDataInfo.hasUrl()
-
hasFilePath
public boolean hasFilePath()
Returns whether this contains a file path.This returns whether
getFilePath()returns a non-empty string.- Overrides:
hasFilePathin classWAbstractDataInfo- See Also:
getFilePath()
-
hasUrl
public boolean hasUrl()
Returns whether this contains a URL.This returns whether
getUrl()returns a non-empty string.- Overrides:
hasUrlin classWAbstractDataInfo- See Also:
getUrl()
-
-