Copyright update
[openflowjava.git] / openflow-protocol-it / src / test / java / org / opendaylight / openflowjava / protocol / impl / integration / TestingConnConfigImpl.java
1 /*
2  * Copyright (c) 2013 Pantheon Technologies s.r.o. 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
9 package org.opendaylight.openflowjava.protocol.impl.integration;
10
11 import java.net.InetAddress;
12
13 import org.opendaylight.openflowjava.protocol.api.connection.ConnectionConfiguration;
14
15 /**
16  * @author michal.polkorab
17  *
18  */
19 public class TestingConnConfigImpl implements ConnectionConfiguration {
20
21     private InetAddress address;
22     private int port;
23     private Object transferProtocol;
24     private FEATURE_SUPPORT tlsSupport;
25     private long switchIdleTimeout;
26
27     /**
28      * Creates {@link TestingConnConfigImpl}
29      * @param address 
30      * @param port
31      * @param tlsSupport
32      * @param switchIdleTimeout
33      */
34     public TestingConnConfigImpl(InetAddress address, int port, FEATURE_SUPPORT tlsSupport, long switchIdleTimeout) {
35         this.address = address;
36         this.port = port;
37         this.tlsSupport = tlsSupport;
38         this.switchIdleTimeout = switchIdleTimeout;
39     }
40
41     @Override
42     public InetAddress getAddress() {
43         return address;
44     }
45
46     @Override
47     public int getPort() {
48         return port;
49     }
50
51     @Override
52     public Object getTransferProtocol() {
53         return transferProtocol;
54     }
55
56     @Override
57     public FEATURE_SUPPORT getTlsSupport() {
58         return tlsSupport;
59     }
60
61     @Override
62     public long getSwitchIdleTimeout() {
63         return switchIdleTimeout;
64     }
65
66     @Override
67     public Object getSslContext() {
68         // TODO Auto-generated method stub
69         return null;
70     }
71
72 }