com.blade.Const Maven / Gradle / Ivy
/**
* Copyright (c) 2015, biezhi 王爵 ([email protected])
*
* 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.blade;
/**
* Const Interface
*
* @author biezhi
* @since 1.0
*/
public interface Const {
/**
* Current version
*/
String BLADE_VERSION = "1.5.1";
/**
* Server 500 error HTML
*/
String INTERNAL_ERROR = "500 Internal Error 500 Internal Error
blade "
+ BLADE_VERSION +" ";
/**
* Server 404 error HTML
*/
String VIEW_NOTFOUND = "404 Not Found [ %s ] Not Found
blade "
+ BLADE_VERSION +" ";
/**
* Default jetty server port
*/
int DEFAULT_PORT = 9000;
/**
* Request ThreadPoll context key
*/
String BLADE_EXECUTOR = "blade-req-executor";
}