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;
10 import org.opendaylight.protocol.framework.SessionPreferences;
11 import org.opendaylight.protocol.framework.SessionPreferencesChecker;
14 * Interface to work with session characteristics. They need to be
15 * checked during the PCEP establishment phase. If they are not
16 * acceptable a new proposal needs to be requested.
18 public abstract class PCEPSessionProposalChecker implements SessionPreferencesChecker {
21 * Checks session characteristics, if they are acceptable.
24 * storage for session characteristics
25 * @return true = acceptable, false = negotiable, null = unacceptable
28 public abstract Boolean checkSessionCharacteristics(SessionPreferences openObj);
31 * In case of negotiable session characteristics, new ones are requested
32 * through this method.
34 * @param open old open object with unacceptable session characteristics
36 * <li> new session characteristics wrapped in Open Object
37 * <li> null if there are not available any different acceptable
38 * session characteristics
40 public abstract PCEPSessionPreferences getNewProposal(SessionPreferences open);