Package net.officefloor.web
Class HttpPathFactoryImpl<T>
java.lang.Object
net.officefloor.web.HttpPathFactoryImpl<T>
- All Implemented Interfaces:
HttpPathFactory<T>
Factory to create the HTTP path.
- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classParameterHttpPathFactoryImpl.Segment.static classSegment of the path.static classStaticHttpPathFactoryImpl.Segment. -
Constructor Summary
ConstructorsConstructorDescriptionHttpPathFactoryImpl(Class<T> valuesType, HttpPathFactoryImpl.Segment<T>[] segments) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptioncreateApplicationClientPath(T values) Creates the client application path.Obtains the expected type to retrieve values in constructing the path.
-
Constructor Details
-
HttpPathFactoryImpl
Instantiate.- Parameters:
valuesType- Type to obtain values.segments-HttpPathFactoryImpl.Segmentinstances.
-
-
Method Details
-
getValuesType
Description copied from interface:HttpPathFactoryObtains the expected type to retrieve values in constructing the path.- Specified by:
getValuesTypein interfaceHttpPathFactory<T>- Returns:
- Expected type to retrieve values in constructing the path. May be
nullif no values are required.
-
createApplicationClientPath
Description copied from interface:HttpPathFactoryCreates the client application path.
This is the path on the server to the
HttpInput(i.e. includes the context path). It, however, does not includeprotocol,domainandport.- Specified by:
createApplicationClientPathin interfaceHttpPathFactory<T>- Parameters:
values- Optional object to obtain values to create the path.- Returns:
- Application path.
- Throws:
HttpException- If fails to create the application path.
-