Class BlendingSpec

java.lang.Object
net.messagevortex.asn1.AbstractBlock
net.messagevortex.asn1.BlendingSpec
All Implemented Interfaces:
Serializable, Block, Dumpable

public class BlendingSpec extends AbstractBlock implements Serializable, Dumpable

Represents a the Blending specification of the router block.

See Also:
  • Field Details

  • Constructor Details

    • BlendingSpec

      public BlendingSpec(org.bouncycastle.asn1.ASN1Encodable to) throws IOException

      Create object from ASN.1 code.

      Parameters:
      to - the ASN.1 code
      Throws:
      IOException - if parsing of ASN.1 code fails
    • BlendingSpec

      public BlendingSpec(String blendingEndpointAddress)
  • Method Details

    • parse

      protected final void parse(org.bouncycastle.asn1.ASN1Encodable to) throws IOException
      Specified by:
      parse in class AbstractBlock
      Throws:
      IOException
    • toAsn1Object

      public org.bouncycastle.asn1.ASN1Object toAsn1Object(DumpType dumpType) throws IOException
      Description copied from interface: Dumpable

      Dumps an ASN.1 representation of the object.

      Specified by:
      toAsn1Object in interface Dumpable
      Parameters:
      dumpType - the dump type to be used
      Returns:
      the ASN.1 string representation of the object
      Throws:
      IOException - if dumping of the object fails due to an illegal internal state of the object
    • dumpValueNotation

      public String dumpValueNotation(String prefix, DumpType dumpType) throws IOException
      Specified by:
      dumpValueNotation in interface Block
      Throws:
      IOException
    • getRecipientAddress

      public String getRecipientAddress()
    • setRecipientAddress

      public String setRecipientAddress(String recipientAddress)

      sets the receiver address of the blender spec.

      Parameters:
      recipientAddress - the encoded recipient address
      Returns:
      the previously set recipient address
    • getMedia

      public String getMedia()
    • setMedia

      public String setMedia(String media)

      Sets the media type of the blender spec.

      Parameters:
      media - the named media to set
      Returns:
      the previously set media
    • getBlendingType

      public String getBlendingType()
    • setBlendingType

      public String setBlendingType(String blendingType)

      Sets the media type of the blender spec.

      Parameters:
      blendingType - the blender type as string
      Returns:
      the previously set blender type