Class RuntimeSetupEndpointValidator
java.lang.Object
de.iip_ecosphere.platform.support.iip_aas.config.BasicEndpointValidator
de.iip_ecosphere.platform.support.iip_aas.config.RuntimeSetupEndpointValidator
- All Implemented Interfaces:
EndpointValidator
An endpoint validator based on
RuntimeSetup.- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCreates a runtime setup endpoint validator based on the given URI. -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointValidatorcreate(Function<RuntimeSetup, String> accessor) Creates an endpoint validator based onRuntimeSetup.static EndpointValidatorcreate(Function<RuntimeSetup, String> accessor, boolean failIfNull) Creates an endpoint validator based onRuntimeSetup.validateHost(String host, EndpointHolder holder) Validates the host.validatePath(String path, EndpointHolder holder) Validates the path.intvalidatePort(int port, EndpointHolder holder) Validates the port.de.iip_ecosphere.platform.support.SchemavalidateSchema(de.iip_ecosphere.platform.support.Schema schema, EndpointHolder holder) Validates the schema.
-
Field Details
-
uri
-
-
Constructor Details
-
RuntimeSetupEndpointValidator
Creates a runtime setup endpoint validator based on the given URI.- Parameters:
uri- the URI overriding the data
-
-
Method Details
-
create
Creates an endpoint validator based onRuntimeSetup. If there is no runtime setup or the accessed URI is invalid, aBasicEndpointValidatoris returned.- Parameters:
accessor- the accessor defining the URI to be used- Returns:
- the endpoint validator
-
create
Creates an endpoint validator based onRuntimeSetup. If there is no runtime setup or the accessed URI is invalid, aBasicEndpointValidatoris returned.- Parameters:
accessor- the accessor defining the URI to be used- Returns:
- the endpoint validator
-
validateHost
Description copied from interface:EndpointValidatorValidates the host.- Specified by:
validateHostin interfaceEndpointValidator- Overrides:
validateHostin classBasicEndpointValidator- Parameters:
host- the original hostholder- the querying endpoint holder- Returns:
- the validated host
-
validatePort
Description copied from interface:EndpointValidatorValidates the port.- Specified by:
validatePortin interfaceEndpointValidator- Overrides:
validatePortin classBasicEndpointValidator- Parameters:
port- the original portholder- the querying endpoint holder- Returns:
- the validated port
-
validateSchema
public de.iip_ecosphere.platform.support.Schema validateSchema(de.iip_ecosphere.platform.support.Schema schema, EndpointHolder holder) Description copied from interface:EndpointValidatorValidates the schema.- Specified by:
validateSchemain interfaceEndpointValidator- Overrides:
validateSchemain classBasicEndpointValidator- Parameters:
schema- the original schemaholder- the querying endpoint holder- Returns:
- the validated schema
-
validatePath
Description copied from interface:EndpointValidatorValidates the path.- Specified by:
validatePathin interfaceEndpointValidator- Overrides:
validatePathin classBasicEndpointValidator- Parameters:
path- the original pathholder- the querying endpoint holder- Returns:
- the validated path
-