Package net.officefloor.web
Interface HttpInputPath
-
- All Known Implementing Classes:
HttpInputPathImpl
public interface HttpInputPathProvides path details for theHttpInput.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> HttpPathFactory<T>createHttpPathFactory(java.lang.Class<T> valuesType)Creates theHttpPathFactory.booleanisMatchPath(java.lang.String path, int endingPathParameterTerminatingCharacter)Indicates if the path matches theHttpInputpath.booleanisPathParameters()Indicates if the path contains parameters (e.g.
-
-
-
Method Detail
-
isMatchPath
boolean isMatchPath(java.lang.String path, int endingPathParameterTerminatingCharacter)Indicates if the path matches theHttpInputpath.- Parameters:
path- Path.endingPathParameterTerminatingCharacter-Charactervalue for theCharacterthat terminates the ending path parameter. This is ignored if the last part of the path is static (i.e. only applies for last parameter to know when it terminates the path, e.g./path/{last}). Should the last parameter consume the remainder of the path, provide-1to indicate no terminatingCharacter.- Returns:
trueif the path matches theHttpInputpath.
-
isPathParameters
boolean isPathParameters()
Indicates if the path contains parameters (e.g./{param}).- Returns:
trueif the path contains parameters.
-
createHttpPathFactory
<T> HttpPathFactory<T> createHttpPathFactory(java.lang.Class<T> valuesType) throws HttpException
Creates theHttpPathFactory.- Type Parameters:
T- Value type.- Parameters:
valuesType- Type to use for obtaining values to construct the path. Should the path not contain parameters, it may benull.- Returns:
HttpPathFactory.- Throws:
HttpException- If required path parameters are not available on the values type.
-
-