* 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;
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;