X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fcommons%2Ffilter-valve%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Ffiltervalve%2Fcors%2Fjaxb%2FInitParam.java;fp=opendaylight%2Fcommons%2Ffilter-valve%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Ffiltervalve%2Fcors%2Fjaxb%2FInitParam.java;h=0000000000000000000000000000000000000000;hb=49568a573fe8d44e67518300b34426331abb258f;hp=edc9e4560d1f6560441186a75302abb73985012e;hpb=f984aadefd56f48aec345b8b7cc7ddf27b794f56;p=controller.git diff --git a/opendaylight/commons/filter-valve/src/main/java/org/opendaylight/controller/filtervalve/cors/jaxb/InitParam.java b/opendaylight/commons/filter-valve/src/main/java/org/opendaylight/controller/filtervalve/cors/jaxb/InitParam.java deleted file mode 100644 index edc9e4560d..0000000000 --- a/opendaylight/commons/filter-valve/src/main/java/org/opendaylight/controller/filtervalve/cors/jaxb/InitParam.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * 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.controller.filtervalve.cors.jaxb; - -import static com.google.common.base.Preconditions.checkState; - -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; - -@XmlRootElement -public class InitParam { - private String paramName; - private String paramValue; - private boolean initialized; - - public synchronized void inititialize() { - checkState(initialized == false, "Already initialized"); - initialized = true; - } - - @XmlElement(name = "param-name") - public String getParamName() { - return paramName; - } - - public void setParamName(String paramName) { - this.paramName = paramName; - } - - @XmlElement(name = "param-value") - public String getParamValue() { - return paramValue; - } - - public void setParamValue(String paramValue) { - this.paramValue = paramValue; - } - - public boolean isInitialized() { - return initialized; - } - - @Override - public String toString() { - return "{" + paramName + '=' + paramValue + "}"; - } -}