2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.protocol.pcep.impl;
10 import java.net.InetSocketAddress;
12 import org.opendaylight.protocol.pcep.PCEPConnection;
13 import org.opendaylight.protocol.pcep.PCEPSessionListener;
14 import org.opendaylight.protocol.pcep.PCEPSessionPreferences;
15 import org.opendaylight.protocol.pcep.PCEPSessionProposalChecker;
17 public class PCEPConnectionImpl implements PCEPConnection {
19 private final InetSocketAddress address;
21 private final PCEPSessionListener listener;
23 private final PCEPSessionPreferences proposal;
25 private final PCEPSessionProposalChecker checker;
27 public PCEPConnectionImpl(final InetSocketAddress address, final PCEPSessionListener listener, final PCEPSessionPreferences proposal,
28 final PCEPSessionProposalChecker checker) {
29 this.address = address;
30 this.listener = listener;
31 this.proposal = proposal;
32 this.checker = checker;
36 public InetSocketAddress getPeerAddress() {
41 public PCEPSessionListener getListener() {
46 public PCEPSessionPreferences getProposal() {
51 public PCEPSessionProposalChecker getProposalChecker() {