View Javadoc

    1   package org.codehaus.xfire.handler;
    2
    3   import java.util.ArrayList;
    4   import java.util.List;
    5
    6   public abstract class AbstractHandlerSupport
    7       implements HandlerSupport
    8   {
    9       private List inHandlers;
    10      private List outHandlers;
    11      private List faultHandlers;
    12
    13      public void addFaultHandler(Handler handler)
    14      {
    15          if (faultHandlers == null) faultHandlers = new ArrayList();
    16
    17          faultHandlers.add(handler);
    18      }
    19
    20      public List getFaultHandlers()
    21      {
    22          return faultHandlers;
    23      }
    24
    25      public void setFaultHandlers(List faultHandlers)
    26      {
    27          this.faultHandlers = faultHandlers;
    28      }
    29
    30      public void addInHandler(Handler handler)
    31      {
    32          if (inHandlers == null) inHandlers = new ArrayList();
    33
    34          inHandlers.add(handler);
    35      }
    36
    37      public List getInHandlers()
    38      {
    39          return inHandlers;
    40      }
    41
    42      public void setInHandlers(List inHandlers)
    43      {
    44          this.inHandlers = inHandlers;
    45      }
    46
    47      public void addOutHandler(Handler handler)
    48      {
    49          if (outHandlers == null) outHandlers = new ArrayList();
    50
    51          outHandlers.add(handler);
    52      }
    53
    54      public List getOutHandlers()
    55      {
    56          return outHandlers;
    57      }
    58
    59      public void setOutHandlers(List outHandlers)
    60      {
    61          this.outHandlers = outHandlers;
    62      }
    63  }