Rename netconf-impl to netconf-server
[netconf.git] / protocol / netconf-server / src / main / java / org / opendaylight / netconf / server / NetconfServerSession.java
similarity index 96%
rename from protocol/netconf-impl/src/main/java/org/opendaylight/netconf/impl/NetconfServerSession.java
rename to protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSession.java
index dd2961193d88b3c81c341f151e5a2ef01966dfbe..f9a933951d96ae90616822d18068ef35dcf342d8 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.impl;
+package org.opendaylight.netconf.server;
 
 import static com.google.common.base.Preconditions.checkState;
 import static com.google.common.base.Verify.verify;
@@ -48,19 +48,15 @@ import org.slf4j.LoggerFactory;
 
 public final class NetconfServerSession extends AbstractNetconfSession<NetconfServerSession,
         NetconfServerSessionListener> implements NetconfManagementSession {
-
     private static final Logger LOG = LoggerFactory.getLogger(NetconfServerSession.class);
     private static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
-
-    private static final String DATE_TIME_PATTERN_STRING;
+    private static final Pattern DATE_TIME_PATTERN;
 
     static {
         verify(DateAndTime.PATTERN_CONSTANTS.size() == 1);
-        DATE_TIME_PATTERN_STRING = DateAndTime.PATTERN_CONSTANTS.get(0);
+        DATE_TIME_PATTERN = Pattern.compile(DateAndTime.PATTERN_CONSTANTS.get(0));
     }
 
-    private static final Pattern DATE_TIME_PATTERN = Pattern.compile(DATE_TIME_PATTERN_STRING);
-
     private final NetconfHelloMessageAdditionalHeader header;
     private final NetconfServerSessionListener sessionListener;