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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    convert(Object sourceObject, org.osgi.service.blueprint.container.ReifiedType targetType)
    Convert the specified object to an instance of the specified type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      canConvert in interface org.osgi.service.blueprint.container.Converter
      Parameters:
      sourceObject - The source object s to convert.
      targetType - The target type T.
      Returns:
      true if the conversion is possible, false otherwise.
    • 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:
      convert in interface org.osgi.service.blueprint.container.Converter
      Parameters:
      sourceObject - The source object s to convert.
      targetType - The target type T.
      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 the canConvert method has returned true.