Make sure PCEPMessageHeader is threadsafe
[bgpcep.git] / pcep / impl / src / test / java / org / opendaylight / protocol / pcep / impl / SimpleSessionProposalChecker.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.protocol.pcep.impl;
9
10 import org.opendaylight.protocol.framework.SessionPreferences;
11 import org.opendaylight.protocol.pcep.PCEPSessionPreferences;
12 import org.opendaylight.protocol.pcep.PCEPSessionProposalChecker;
13 import org.opendaylight.protocol.pcep.object.PCEPOpenObject;
14
15 /**
16  *
17  */
18 public class SimpleSessionProposalChecker extends PCEPSessionProposalChecker {
19
20         @Override
21         public Boolean checkSessionCharacteristics(SessionPreferences openObj) {
22                 return true;
23         }
24
25         @Override
26         public PCEPSessionPreferences getNewProposal(SessionPreferences open) {
27                 return new PCEPSessionPreferences(new PCEPOpenObject(1, 1, 0, null));
28         }
29
30 }