2 * Copyright (c) 2016 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
8 package org.opendaylight.restconf.utils;
10 import com.google.common.base.Splitter;
11 import java.text.SimpleDateFormat;
14 * Util class for Restconf constants.
17 public final class RestconfConstants {
19 public static final String XML = "+xml";
20 public static final String JSON = "+json";
21 public static final String MOUNT = "yang-ext:mount";
22 public static final String IDENTIFIER = "identifier";
23 public static final SimpleDateFormat REVISION_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
24 public static final char SLASH = '/';
25 public static final Splitter SLASH_SPLITTER = Splitter.on(SLASH);
27 private RestconfConstants() {
28 throw new UnsupportedOperationException("Util class");