Class ResourceServerConfiguration
java.lang.Object
com.github.toolarium.jwebserver.config.ResourceServerConfiguration
- All Implemented Interfaces:
IResourceServerConfiguration,Serializable
public class ResourceServerConfiguration
extends Object
implements IResourceServerConfiguration, Serializable
Implements the
IResourceServerConfiguration.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for ResourceServerConfigurationResourceServerConfiguration(IResourceServerConfiguration configuration) Constructor for ResourceServerConfiguration -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the directoryString[]Set the supported file extensionsString[]Set the welcome filesinthashCode()booleanDefine if the directory listing is enabledbooleanDefine if the directory is localbooleanDefine if the directory should be read from the classpathsetDirectory(String directory) Set the directorysetDirectory(String directory, Boolean readFromClasspath) Set the directorysetDirectoryListingEnabled(Boolean directoryListingEnabled) Define if the directory listing is enabledsetSupportedFileExtensions(String supportedFileExtensions) Set the supported file extensionssetSupportedFileExtensions(String[] supportedFileExtensions) Set the supported file extensionssetWelcomeFiles(String welcomeFiles) Set the welcome filessetWelcomeFiles(String[] welcomeFiles) Set the welcome filestoString()
-
Constructor Details
-
ResourceServerConfiguration
public ResourceServerConfiguration()Constructor for ResourceServerConfiguration -
ResourceServerConfiguration
Constructor for ResourceServerConfiguration- Parameters:
configuration- the configuration
-
-
Method Details
-
getDirectory
Description copied from interface:IResourceServerConfigurationGet the directory- Specified by:
getDirectoryin interfaceIResourceServerConfiguration- Returns:
- the directory
- See Also:
-
setDirectory
Set the directory- Parameters:
directory- the directory- Returns:
- the ResourceServerConfiguration
-
setDirectory
Set the directory- Parameters:
directory- the directoryreadFromClasspath- the directory should be read from the classpath- Returns:
- the ResourceServerConfiguration
-
readFromClasspath
public boolean readFromClasspath()Description copied from interface:IResourceServerConfigurationDefine if the directory should be read from the classpath- Specified by:
readFromClasspathin interfaceIResourceServerConfiguration- Returns:
- true if the directory should be read from the classpath
- See Also:
-
isLocalDirectory
public boolean isLocalDirectory()Description copied from interface:IResourceServerConfigurationDefine if the directory is local- Specified by:
isLocalDirectoryin interfaceIResourceServerConfiguration- Returns:
- true if the directory is local
- See Also:
-
isDirectoryListingEnabled
public boolean isDirectoryListingEnabled()Description copied from interface:IResourceServerConfigurationDefine if the directory listing is enabled- Specified by:
isDirectoryListingEnabledin interfaceIResourceServerConfiguration- Returns:
- true if it is enabled
- See Also:
-
setDirectoryListingEnabled
Define if the directory listing is enabled- Parameters:
directoryListingEnabled- turn true if it is enabled- Returns:
- the ResourceServerConfiguration
-
getWelcomeFiles
Description copied from interface:IResourceServerConfigurationSet the welcome files- Specified by:
getWelcomeFilesin interfaceIResourceServerConfiguration- Returns:
- the welcome files
- See Also:
-
setWelcomeFiles
Set the welcome files- Parameters:
welcomeFiles- the welcome files- Returns:
- the ResourceServerConfiguration
-
setWelcomeFiles
Set the welcome files- Parameters:
welcomeFiles- the welcome files- Returns:
- the ResourceServerConfiguration
-
getSupportedFileExtensions
Description copied from interface:IResourceServerConfigurationSet the supported file extensions- Specified by:
getSupportedFileExtensionsin interfaceIResourceServerConfiguration- Returns:
- the supported file extensions
- See Also:
-
setSupportedFileExtensions
Set the supported file extensions- Parameters:
supportedFileExtensions- the supported file extensions- Returns:
- the ResourceServerConfiguration
-
setSupportedFileExtensions
Set the supported file extensions- Parameters:
supportedFileExtensions- the supported file extensions- Returns:
- the ResourceServerConfiguration
-
hashCode
public int hashCode() -
equals
-
toString
-