b6a2f9f0674598312d5c7c5ab0b3be974fcef7b4
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / restconf / utils / RestconfConstants.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. 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 package org.opendaylight.restconf.utils;
9
10 import com.google.common.base.Splitter;
11 import java.text.SimpleDateFormat;
12
13 /**
14  * Util class for Restconf constants.
15  *
16  */
17 public final class RestconfConstants {
18
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);
26     public static final String DRAFT_PATTERN = "restconf/17";
27
28     private RestconfConstants() {
29         throw new UnsupportedOperationException("Util class");
30     }
31 }