Package ddf.security.samlp.impl
Class RelayStatesConverter
java.lang.Object
ddf.security.samlp.impl.RelayStatesConverter
- All Implemented Interfaces:
org.osgi.service.blueprint.container.Converter
public class RelayStatesConverter
extends Object
implements org.osgi.service.blueprint.container.Converter
Example:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(Object sourceObject, org.osgi.service.blueprint.container.ReifiedType targetType) Return if this converter is able to convert the specified object to the specified type.Convert the specified object to an instance of the specified type.
-
Constructor Details
-
RelayStatesConverter
public RelayStatesConverter()
-
-
Method Details
-
canConvert
public boolean canConvert(Object sourceObject, org.osgi.service.blueprint.container.ReifiedType targetType) Return if this converter is able to convert the specified object to the specified type.- Specified by:
canConvertin interfaceorg.osgi.service.blueprint.container.Converter- Parameters:
sourceObject- The source objectsto convert.targetType- The target typeT.- Returns:
trueif the conversion is possible,falseotherwise.
-
convert
public Object convert(Object sourceObject, org.osgi.service.blueprint.container.ReifiedType targetType) throws Exception Convert the specified object to an instance of the specified type.- Specified by:
convertin interfaceorg.osgi.service.blueprint.container.Converter- Parameters:
sourceObject- The source objectsto convert.targetType- The target typeT.- Returns:
- An instance with a type that is assignable from targetType's raw class
- Throws:
Exception- If the conversion cannot succeed. This exception should not be thrown when thecanConvertmethod has returnedtrue.
-