Interface HttpResourcesBuilder
-
public interface HttpResourcesBuilderBuilds the externalHttpResourceinstances.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddResourceTransformer(java.lang.String name)Registers aResourceTransformerfrom aResourceTransformerFactoryto transform the resources.voidaddResourceTransformer(ResourceTransformer transformer)Registers aResourceTransformerto transform the resources.voidaddTypeQualifier(java.lang.String qualifier)HttpSecurableBuildergetHttpSecurer()Obtains theHttpSecurableBuilderto configure access controls to theHttpResourceinstances.voidsetContextPath(java.lang.String contextPath)Specifies the context path within the application to serve theHttpResourceinstances.voidsetDirectoryDefaultResourceNames(java.lang.String... defaultResourceNames)Specifies the default file names within a directory.
-
-
-
Method Detail
-
setContextPath
void setContextPath(java.lang.String contextPath)
Specifies the context path within the application to serve the
HttpResourceinstances.Should a context path not be specified, the
HttpResourceinstances will be served from the root of the application.- Parameters:
contextPath- Context path.
-
addTypeQualifier
void addTypeQualifier(java.lang.String qualifier)
- Parameters:
qualifier-TypeQualificationqualifier.
-
addResourceTransformer
void addResourceTransformer(ResourceTransformer transformer)
Registers aResourceTransformerto transform the resources.- Parameters:
transformer-ResourceTransformer.
-
addResourceTransformer
void addResourceTransformer(java.lang.String name)
Registers aResourceTransformerfrom aResourceTransformerFactoryto transform the resources.- Parameters:
name- Name of theResourceTransformerFactoryto create theResourceTransformer.- See Also:
ResourceTransformerFactory
-
setDirectoryDefaultResourceNames
void setDirectoryDefaultResourceNames(java.lang.String... defaultResourceNames)
Specifies the default file names within a directory.- Parameters:
defaultResourceNames- Default file names within directory.
-
getHttpSecurer
HttpSecurableBuilder getHttpSecurer()
Obtains the
HttpSecurableBuilderto configure access controls to theHttpResourceinstances.Calling this method without providing configuration requires only authentication to access
HttpResourceinstances.- Returns:
HttpSecurableBuilder.
-
-