All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.worldpay.sdk.util.WorldpayLibraryConstants Maven / Gradle / Ivy

There is a newer version: 0.1.13
Show newest version
/*
 * Copyright 2013 Worldpay
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and limitations under the License.
 */

package com.worldpay.sdk.util;

/**
 * Constants
 */
public final class WorldpayLibraryConstants {

    /**
     * Hiding constructor
     */
    private WorldpayLibraryConstants(){
        // this prevents from creating instances of this class
    }

    /**
     * Connection timeout in milliseconds.
     */
    public static final int CONNECTION_TIMEOUT = 10000;

    /**
     * Socket timeout in milliseconds.
     */
    public static final int SOCKET_TIMEOUT = 10000;

    public static final java.lang.String ACCEPT = "Accept";

    public static final java.lang.String AUTHORIZATION = "Authorization";

    public static final java.lang.String CONTENT_TYPE = "Content-Type";

    public static final java.lang.String WP_CLIENT_USER_AGENT = "X-wp-client-user-agent";
    /**
     * JSON header value.
     */
    public static final String APPLICATION_JSON = "application/json";

    public static final String COMMA = ",";

    public static final String GET = "GET";

    public static final String POST = "POST";

    public static final String PUT = "PUT";

    public static final String DELETE = "DELETE";

    public static final int HTTP_ERROR_CODE_300 = 300;

    public static final String OS_NAME_PROP = "os.name=" + System.getProperty("os.name");

    public static final String OS_VERSION_PROP = "os.version=" + System.getProperty("os.version");

    public static final String OS_ARCH_PROP = "os.arch=" + System.getProperty("os.arch");

    public static final String LANG_VERSION_PROP = "lang.version=" + System.getProperty("java.vm.specification.version");

    public static final String JAVA_VENDOR_PROP = "java.vendor=" + System.getProperty("java.vendor");

    public static final String JVM_VENDOR_PROP = "jvm.vendor=" + System.getProperty("java.vm.vendor");

    public static final String LIB_VERSION_PROP = "lib.version=1.2";

    public static final String API_VERSION_PROP = "api.version=V1";

    public static final String OWNER_PROP = "owner=Worldpay";

    public static final String EOF = "\\u001a";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy