View Javadoc

    1   package org.codehaus.xfire.transport.dead;
    2
    3   import org.codehaus.xfire.transport.AbstractTransport;
    4   import org.codehaus.xfire.transport.Channel;
    5
    6   /***
    7    * A place for messages which cannot be routed to a destination.
    8    *
    9    * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
    10   */
    11  public class DeadLetterTransport
    12      extends AbstractTransport
    13  {
    14      public final static String NAME = "dead-letter-transport";
    15      public static final String DEAD_LETTER_URI = "xfire.dead://";
    16
    17      protected Channel createNewChannel(String uri)
    18      {
    19          return new DeadLetterChannel(this);
    20      }
    21
    22      protected String getUriPrefix()
    23      {
    24          return DEAD_LETTER_URI;
    25      }
    26
    27      public String getName()
    28      {
    29          return NAME;
    30      }
    31
    32      public String[] getKnownUriSchemes()
    33      {
    34          return new String[] { DEAD_LETTER_URI };
    35      }
    36  }