001/** 002 * Copyright 2014 Tampere University of Technology, Pori Department 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package service.tut.pori.fileservice; 017 018/** 019 * Definitions for fileservice package. 020 */ 021public final class Definitions { 022 /** 023 * 024 */ 025 private Definitions(){ 026 // nothing needed 027 } 028 029 /* services */ 030 /** service name declaration */ 031 public static final String SERVICE_FS = "fs"; 032 033 /* methods */ 034 /** service method declaration */ 035 public static final String METHOD_ADD_FILE = "addFile"; 036 /** service method declaration */ 037 public static final String METHOD_DELETE_FILE = "deleteFile"; 038 /** service method declaration */ 039 public static final String METHOD_LIST_FILES = "listFiles"; 040 041 /* elements */ 042 /** xml element declaration */ 043 public static final String ELEMENT_FILELIST = "fileList"; 044 /** xml element declaration */ 045 public static final String ELEMENT_FILE = "file"; 046 /** xml element declaration */ 047 public static final String ELEMENT_FILE_ID = "fileId"; 048 /** xml element declaration */ 049 public static final String ELEMENT_NAME = "name"; 050 /** xml element declaration */ 051 public static final String ELEMENT_URL = "url"; 052 053 /* parameters */ 054 /** method parameter declaration */ 055 public static final String PARAMETER_FILE_ID = "file_id"; 056 /** method parameter declaration */ 057 public static final String PARAMETER_FILE_NAME = "filename"; 058 059 /** property file for the service */ 060 protected static final String PROPERTY_FILE = "fs.properties"; 061}