View Javadoc

    1   /*
    2    *  Licensed to the Apache Software Foundation (ASF) under one
    3    *  or more contributor license agreements.  See the NOTICE file
    4    *  distributed with this work for additional information
    5    *  regarding copyright ownership.  The ASF licenses this file
    6    *  to you under the Apache License, Version 2.0 (the
    7    *  "License"); you may not use this file except in compliance
    8    *  with the License.  You may obtain a copy of the License at
    9    *
    10   *    http://www.apache.org/licenses/LICENSE-2.0
    11   *
    12   *  Unless required by applicable law or agreed to in writing,
    13   *  software distributed under the License is distributed on an
    14   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    15   *  KIND, either express or implied.  See the License for the
    16   *  specific language governing permissions and limitations
    17   *  under the License.
    18   *
    19   */
    20  package org.apache.mina.transport.vmpipe.support;
    21
    22  import org.apache.mina.common.IoHandler;
    23  import org.apache.mina.common.IoServiceConfig;
    24  import org.apache.mina.common.support.IoServiceListenerSupport;
    25  import org.apache.mina.transport.vmpipe.VmPipeAcceptor;
    26  import org.apache.mina.transport.vmpipe.VmPipeAddress;
    27
    28  /**
    29   * @todo Document me!
    30   *
    31   * @author The Apache Directory Project (mina-dev@directory.apache.org)
    32   * @version $Rev: 585081 $, $Date: 2007-10-16 17:45:14 +0900 (Tue, 16 Oct 2007) $
    33   */
    34  public class VmPipe {
    35      private final VmPipeAcceptor acceptor;
    36
    37      private final VmPipeAddress address;
    38
    39      private final IoHandler handler;
    40
    41      private final IoServiceConfig config;
    42
    43      private final IoServiceListenerSupport listeners;
    44
    45      public VmPipe(VmPipeAcceptor acceptor, VmPipeAddress address,
    46              IoHandler handler, IoServiceConfig config,
    47              IoServiceListenerSupport listeners) {
    48          this.acceptor = acceptor;
    49          this.address = address;
    50          this.handler = handler;
    51          this.config = config;
    52          this.listeners = listeners;
    53      }
    54
    55      public VmPipeAcceptor getAcceptor() {
    56          return acceptor;
    57      }
    58
    59      public VmPipeAddress getAddress() {
    60          return address;
    61      }
    62
    63      public IoHandler getHandler() {
    64          return handler;
    65      }
    66
    67      public IoServiceConfig getConfig() {
    68          return config;
    69      }
    70
    71      public IoServiceListenerSupport getListeners() {
    72          return listeners;
    73      }
    74  }