Interface HttpResourcesBuilder
public interface HttpResourcesBuilder
Builds the external
HttpResource instances.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceTransformer(String name) Registers aResourceTransformerfrom aResourceTransformerFactoryto transform the resources.voidaddResourceTransformer(ResourceTransformer transformer) Registers aResourceTransformerto transform the resources.voidaddTypeQualifier(String qualifier) Obtains theHttpSecurableBuilderto configure access controls to theHttpResourceinstances.voidsetContextPath(String contextPath) Specifies the context path within the application to serve theHttpResourceinstances.voidsetDirectoryDefaultResourceNames(String... defaultResourceNames) Specifies the default file names within a directory.
-
Method Details
-
setContextPath
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
- Parameters:
qualifier-TypeQualificationqualifier.
-
addResourceTransformer
Registers aResourceTransformerto transform the resources.- Parameters:
transformer-ResourceTransformer.
-
addResourceTransformer
Registers aResourceTransformerfrom aResourceTransformerFactoryto transform the resources.- Parameters:
name- Name of theResourceTransformerFactoryto create theResourceTransformer.- See Also:
-
setDirectoryDefaultResourceNames
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.
-