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

io.github.nichetoolkit.rest.constant.UtilConstants Maven / Gradle / Ivy

The newest version!
package io.github.nichetoolkit.rest.constant;

import java.awt.*;
import java.security.SecureRandom;

/**
 * UtilConstants
 * 

The util constants interface.

* @author Cyan ([email protected]) * @since Jdk1.8 */ public interface UtilConstants { /** * ROOT_PREFIX * {@link java.lang.String}

The constant ROOT_PREFIX field.

* @see java.lang.String */ String ROOT_PREFIX = "classpath:"; /** * STATIC_PREFIX * {@link java.lang.String}

The constant STATIC_PREFIX field.

* @see java.lang.String */ String STATIC_PREFIX = "static"; /** * EMPTY_PREFIX * {@link java.lang.String}

The constant EMPTY_PREFIX field.

* @see java.lang.String */ String EMPTY_PREFIX = ""; /** * SECURE_RANDOM * {@link java.security.SecureRandom}

The constant SECURE_RANDOM field.

* @see java.security.SecureRandom */ SecureRandom SECURE_RANDOM = new SecureRandom(); /** * BASE_SYMBOL * {@link java.lang.String}

The constant BASE_SYMBOL field.

* @see java.lang.String */ String BASE_SYMBOL = "!@#$%^&*()[]{}\";:+~·=-/,.<>?\\|"; /** * BASE_STRING_UPPER * {@link java.lang.String}

The constant BASE_STRING_UPPER field.

* @see java.lang.String */ String BASE_STRING_UPPER = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; /** * BASE_STRING_LOWER * {@link java.lang.String}

The constant BASE_STRING_LOWER field.

* @see java.lang.String */ String BASE_STRING_LOWER = BASE_STRING_UPPER.toLowerCase(); /** * BASE_REGEX * {@link java.lang.String}

The constant BASE_REGEX field.

* @see java.lang.String */ String BASE_REGEX = "_"; /** * BASE_NUMBER * {@link java.lang.String}

The constant BASE_NUMBER field.

* @see java.lang.String */ String BASE_NUMBER = "0123456789"; /** * BASE_STRING * {@link java.lang.String}

The constant BASE_STRING field.

* @see java.lang.String */ String BASE_STRING = BASE_NUMBER.concat(BASE_STRING_LOWER).concat(BASE_STRING_UPPER); /** * MIN_LENGTH * {@link java.lang.Integer}

The constant MIN_LENGTH field.

* @see java.lang.Integer */ Integer MIN_LENGTH = 3; /** * DEFAULT_IMAGE_WIDTH * {@link java.lang.Integer}

The constant DEFAULT_IMAGE_WIDTH field.

* @see java.lang.Integer */ Integer DEFAULT_IMAGE_WIDTH = 70; /** * DEFAULT_IMAGE_HEIGHT * {@link java.lang.Integer}

The constant DEFAULT_IMAGE_HEIGHT field.

* @see java.lang.Integer */ Integer DEFAULT_IMAGE_HEIGHT = 25; /** * DEFAULT_IMAGE_COLOR * {@link java.awt.Color}

The constant DEFAULT_IMAGE_COLOR field.

* @see java.awt.Color */ Color DEFAULT_IMAGE_COLOR = Color.WHITE; /** * FONT_NAME_ARRAY * {@link java.lang.String}

The constant FONT_NAME_ARRAY field.

* @see java.lang.String */ String[] FONT_NAME_ARRAY = { "宋体", "华文楷体", "黑体", "微软雅黑", "楷体_GB2312", "Arial" }; /** * AFFINE_TRANSFORM_ARRAY * {@link java.lang.Integer}

The constant AFFINE_TRANSFORM_ARRAY field.

* @see java.lang.Integer */ Integer[] AFFINE_TRANSFORM_ARRAY = { 0, 15, 20, 30, 35, 40 }; /** * STYLE_ARRAY *

The constant STYLE_ARRAY field.

*/ int[] STYLE_ARRAY = { Font.PLAIN, Font.BOLD, Font.ITALIC}; /** * LOCALHOST_IPV4 * {@link java.lang.String}

The constant LOCALHOST_IPV4 field.

* @see java.lang.String */ String LOCALHOST_IPV4 = "127.0.0.1"; /** * LOCALHOST_IPV6 * {@link java.lang.String}

The constant LOCALHOST_IPV6 field.

* @see java.lang.String */ String LOCALHOST_IPV6 = "0:0:0:0:0:0:0:1"; /** * IP_REGEX * {@link java.lang.String}

The constant IP_REGEX field.

* @see java.lang.String */ String IP_REGEX = ","; /** * SUFFIX_REGEX * {@link java.lang.String}

The constant SUFFIX_REGEX field.

* @see java.lang.String */ String SUFFIX_REGEX = "."; /** * ZIP_SUFFIX * {@link java.lang.String}

The constant ZIP_SUFFIX field.

* @see java.lang.String */ String ZIP_SUFFIX = "zip"; /** * IMAGE_SUFFIX * {@link java.lang.String}

The constant IMAGE_SUFFIX field.

* @see java.lang.String */ String IMAGE_SUFFIX = "jpeg"; /** * UNKNOWN_HEADER * {@link java.lang.String}

The constant UNKNOWN_HEADER field.

* @see java.lang.String */ String UNKNOWN_HEADER = "unknown"; /** * X_REAL_IP_HEADER * {@link java.lang.String}

The constant X_REAL_IP_HEADER field.

* @see java.lang.String */ String X_REAL_IP_HEADER = "X-Real-IP"; /** * X_FORWARDED_FOR_HEADER * {@link java.lang.String}

The constant X_FORWARDED_FOR_HEADER field.

* @see java.lang.String */ String X_FORWARDED_FOR_HEADER = "X-Forwarded-For"; /** * PROXY_CLIENT_IP_HEADER * {@link java.lang.String}

The constant PROXY_CLIENT_IP_HEADER field.

* @see java.lang.String */ String PROXY_CLIENT_IP_HEADER = "Proxy-Client-IP"; /** * WL_PROXY_CLIENT_IP_HEADER * {@link java.lang.String}

The constant WL_PROXY_CLIENT_IP_HEADER field.

* @see java.lang.String */ String WL_PROXY_CLIENT_IP_HEADER = "WL-Proxy-Client-IP"; /** * HTTP_CLIENT_IP_HEADER * {@link java.lang.String}

The constant HTTP_CLIENT_IP_HEADER field.

* @see java.lang.String */ String HTTP_CLIENT_IP_HEADER = "HTTP_CLIENT_IP"; /** * HTTP_X_FORWARDED_FOR_HEADER * {@link java.lang.String}

The constant HTTP_X_FORWARDED_FOR_HEADER field.

* @see java.lang.String */ String HTTP_X_FORWARDED_FOR_HEADER = "HTTP_X_FORWARDED_FOR"; /** * CONTENT_HEADER * {@link java.lang.String}

The constant CONTENT_HEADER field.

* @see java.lang.String */ String CONTENT_HEADER = "content-disposition"; /** * USER_AGENT_HEADER * {@link java.lang.String}

The constant USER_AGENT_HEADER field.

* @see java.lang.String */ String USER_AGENT_HEADER = "User-Agent"; /** * FILENAME_CONTENT * {@link java.lang.String}

The constant FILENAME_CONTENT field.

* @see java.lang.String */ String FILENAME_CONTENT = "attachment;filename="; /** * FILENAME_UTF_8_CONTENT * {@link java.lang.String}

The constant FILENAME_UTF_8_CONTENT field.

* @see java.lang.String */ String FILENAME_UTF_8_CONTENT= "attachment;filename*=UTF-8''"; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy