Modify ONAP PAP REST classes basic checkstyle
[policy/engine.git] / ONAP-PAP-REST / src / main / java / org / onap / policy / pap / xacml / rest / handler / DictionaryHandler.java
index 6aec7a9..89ce188 100644 (file)
@@ -28,38 +28,38 @@ import org.onap.policy.common.logging.flexlogger.Logger;
 import com.att.research.xacml.util.XACMLProperties;
 
 public interface DictionaryHandler {
-       public static final Logger logger = FlexLogger.getLogger(DictionaryHandler.class);
-       String DICTIONARY_DEFAULT_CLASS = DictionaryHandlerImpl.class.getName();
+    public static final Logger logger = FlexLogger.getLogger(DictionaryHandler.class);
+    String DICTIONARY_DEFAULT_CLASS = DictionaryHandlerImpl.class.getName();
 
-       /*
-        * Get Instance
-        */
-       public static DictionaryHandler getInstance(){
-               try {
-                       Class<?> dictionaryHandler = Class.forName(XACMLProperties.getProperty("dictionary.impl.className", DICTIONARY_DEFAULT_CLASS));
-                       DictionaryHandler instance = (DictionaryHandler) dictionaryHandler.newInstance(); 
-                       return instance;
-               } catch (Exception e) {
-                       logger.error(e.getMessage(),e);
-               }
-               return null;
-       }
-       
-       /*
-        * Get Equivalent for Dictionary Services.
-        */
-       public void doDictionaryAPIGet(HttpServletRequest request, HttpServletResponse response);
-       /*
-        * Put Equivalent for Dictionary Services. 
-        */
-       public void doDictionaryAPIPut(HttpServletRequest request, HttpServletResponse response);
-       
-       /**
-        * Can be used to extend the services.
-        * 
-        * getflag=true indicates Get Request.
-        * getflag=false indicates Put Request.  
-        * @return 
-        */
-       public String extendedOptions(String dictionaryType, HttpServletRequest request, HttpServletResponse response, boolean getflag);
+    /*
+     * Get Instance
+     */
+    public static DictionaryHandler getInstance(){
+        try {
+            Class<?> dictionaryHandler = Class.forName(XACMLProperties.getProperty("dictionary.impl.className", DICTIONARY_DEFAULT_CLASS));
+            DictionaryHandler instance = (DictionaryHandler) dictionaryHandler.newInstance();
+            return instance;
+        } catch (Exception e) {
+            logger.error(e.getMessage(),e);
+        }
+        return null;
+    }
+
+    /*
+     * Get Equivalent for Dictionary Services.
+     */
+    public void doDictionaryAPIGet(HttpServletRequest request, HttpServletResponse response);
+    /*
+     * Put Equivalent for Dictionary Services.
+     */
+    public void doDictionaryAPIPut(HttpServletRequest request, HttpServletResponse response);
+
+    /**
+     * Can be used to extend the services.
+     *
+     * getflag=true indicates Get Request.
+     * getflag=false indicates Put Request.
+     * @return
+     */
+    public String extendedOptions(String dictionaryType, HttpServletRequest request, HttpServletResponse response, boolean getflag);
 }