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
9 package org.opendaylight.openflowplugin.openflow.md.core;
11 import java.net.InetAddress;
13 import org.opendaylight.openflowjava.protocol.api.connection.ConnectionConfiguration;
18 public abstract class ConnectionConfigurationFactory {
20 /** OF default listening port */
21 private static final int DEFAULT_OF_PORT = 6653;
22 /** OF legacy default listening port */
23 private static final int LEGACY_OF_PORT = 6633;
26 * @return default connection configuration
28 public static ConnectionConfiguration getDefault() {
29 return new ConnectionConfiguration() {
32 public InetAddress getAddress() {
38 public int getPort() {
39 return DEFAULT_OF_PORT;
43 public FEATURE_SUPPORT getTlsSupport() {
44 return FEATURE_SUPPORT.NOT_SUPPORTED;
48 public Object getTransferProtocol() {
54 public long getSwitchIdleTimeout() {
59 public Object getSslContext() {