com.sap.ipe.ble.irp.handler.constants.Constants Maven / Gradle / Ivy
package com.sap.ipe.ble.irp.handler.constants;
/***
* Constants file contains all the constants defined in the application
*/
public final class Constants {
Constants(){}
public static final String DESTINATION_NAME = "remote.destination";
public static final String DEEP_SELECT_NAME = "remote.deepSelect";
public static final String TIME_OUT = "remote.timeOut";
public static final String CQN = "cqn";
public static final String DATA = "Data";
public static final String ENTITY = "Entity";
public static final String SERVICE = "Service";
public static final String USER_CLAIM = "UserClaim";
public static final String REMOTE_SERVICES_URL ="/odata/v4/com.sap.ipe.ble.remotehandler.RemoteHandlerService/Handle";
public static final String RESULT = "result";
public static final String ACCEPT = "Accept";
public static final String CONTENT_TYPE = "Content-Type";
public static final String APPLICATION_JSON = "application/json";
public static final int MAX_CONNECTION_TOTAL = 200;
public static final int MAX_CONNECTION_PER_ROUTE = 100;
public static final int STATUS_CODE_LOW = 200;
public static final int STATUS_CODE_HIGH = 299;
public static final String ELEMENT_PREFIX = "x_";
public static final String ERROR = "error";
public static final String MESSAGE = "message";
public static final String CODE = "code";
public static final String SANITISE_REGEX = "<(/)?[ ]*script[^>]*>";
public static final String VULNERABLE_CHARAC_REGEX = "[\\/<>'=$%*^?@&!;+()]";
public static final String UNSAFE_CHAR_MESSAGE = "UNSAFE_CHAR_MESSAGE";
public static final String DESTINATION_NOT_FOUND = "DESTINATION_NOT_FOUND";
public static final String TIMEOUT_EXCEPTION = "TIMEOUT_EXCEPTION";
public static final String FAIL_ON_UNKNOWN_PROPERTIES = "FAIL_ON_UNKNOWN_PROPERTIES";
public static final String INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR";
public static final String PROCESS_REQUEST_ERROR = "PROCESS_REQUEST_ERROR";
public static final String TIME_OUT_EXCEPTION_MESSAGE = "TimeoutException";
public static final String DESTINATION_ERROR = "Exception occurred while fetching the Destination :";
public static final String HTTP_POST_ERROR = "Exception occurred while executing HTTP Post Request :";
public static final String MESSAGE_PROCESSING_ERROR = "Exception occurred during processing of Messages from Remote Extension :";
public static final String UNEXPECTED_ERROR = "Unexpected exception occurred inside Generic Handler :";
public static final String GENERIC_HANDLER_ERROR = "Exception occurred inside Generic Handler :";
public static final String PAYLOAD_ERROR = "Exception occurred during Payload Data Creation :";
public static final String RESPONSE_ERROR = "Exception occurred during processing of Data from Remote Extension :";
public static final String remoteActionTriggered = "Remote Extension Action Handler Triggered";
public static final String remoteActionTriggeredData = "Call triggered with data";
}