1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20 package org.apache.synapse.transport.vfs;
21
22 public class VFSConstants {
23 // vfs transport prefix (e.g. used in an out EPR etc)
24 public static final String VFS_PREFIX = "vfs:";
25
26 public static final String TRANSPORT_FILE_ACTION_AFTER_PROCESS = "transport.vfs.ActionAfterProcess";
27 public static final String TRANSPORT_FILE_ACTION_AFTER_ERRORS = "transport.vfs.ActionAfterErrors";
28 public static final String TRANSPORT_FILE_ACTION_AFTER_FAILURE = "transport.vfs.ActionAfterFailure";
29
30 public static final String TRANSPORT_FILE_MOVE_AFTER_PROCESS = "transport.vfs.MoveAfterProcess";
31 public static final String TRANSPORT_FILE_MOVE_AFTER_ERRORS = "transport.vfs.MoveAfterErrors";
32 public static final String TRANSPORT_FILE_MOVE_AFTER_FAILURE = "transport.vfs.MoveAfterFailure";
33
34 public static final String TRANSPORT_FILE_FILE_URI = "transport.vfs.FileURI";
35 public static final String TRANSPORT_FILE_FILE_NAME_PATTERN = "transport.vfs.FileNamePattern";
36 public static final String TRANSPORT_FILE_CONTENT_TYPE = "transport.vfs.ContentType";
37
38 public static final String REPLY_FILE_URI = "transport.vfs.ReplyFileURI";
39 public static final String REPLY_FILE_NAME = "transport.vfs.ReplyFileName";
40
41 public static final String TRANSPORT_FILE_MOVE_TIMESTAMP_FORMAT = "transport.vfs.MoveTimestampFormat";
42
43 public static final String DEFAULT_RESPONSE_FILE = "response.xml";
44
45 public static final String MAX_RETRY_COUNT = "transport.vfs.MaxRetryCount";
46 public static final String RECONNECT_TIMEOUT = "transport.vfs.ReconnectTimeout";
47 public static final String APPEND = "transport.vfs.Append";
48 public static final int DEFAULT_MAX_RETRY_COUNT = 3;
49 public static final long DEFAULT_RECONNECT_TIMEOUT = 30000;
50
51 // transport header property names used by the VFS transport
52 public static final String FILE_PATH = "FILE_PATH";
53 public static final String FILE_NAME = "FILE_NAME";
54 public static final String FILE_LENGTH = "FILE_LENGTH";
55 public static final String LAST_MODIFIED = "LAST_MODIFIED";
56 }