Interface HttpResourcesBuilder
-
public interface HttpResourcesBuilder
Builds the externalHttpResource
instances.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addResourceTransformer(java.lang.String name)
Registers aResourceTransformer
from aResourceTransformerFactory
to transform the resources.void
addResourceTransformer(ResourceTransformer transformer)
Registers aResourceTransformer
to transform the resources.void
addTypeQualifier(java.lang.String qualifier)
HttpSecurableBuilder
getHttpSecurer()
Obtains theHttpSecurableBuilder
to configure access controls to theHttpResource
instances.void
setContextPath(java.lang.String contextPath)
Specifies the context path within the application to serve theHttpResource
instances.void
setDirectoryDefaultResourceNames(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
HttpResource
instances.Should a context path not be specified, the
HttpResource
instances will be served from the root of the application.- Parameters:
contextPath
- Context path.
-
addTypeQualifier
void addTypeQualifier(java.lang.String qualifier)
- Parameters:
qualifier
-TypeQualification
qualifier.
-
addResourceTransformer
void addResourceTransformer(ResourceTransformer transformer)
Registers aResourceTransformer
to transform the resources.- Parameters:
transformer
-ResourceTransformer
.
-
addResourceTransformer
void addResourceTransformer(java.lang.String name)
Registers aResourceTransformer
from aResourceTransformerFactory
to transform the resources.- Parameters:
name
- Name of theResourceTransformerFactory
to 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
HttpSecurableBuilder
to configure access controls to theHttpResource
instances.Calling this method without providing configuration requires only authentication to access
HttpResource
instances.- Returns:
HttpSecurableBuilder
.
-
-