cn.dreampie.common.http
类 HttpMessage

java.lang.Object
  继承者 cn.dreampie.common.http.HttpMessage

public class HttpMessage
extends Object

Created by Dreampie on 2016/11/9.


字段摘要
static String ACCEPTED
           
static String API_NOT_FOUND
           
static String BAD_REQUEST
           
static String CORS_FAILED
           
static String CREATED
           
static String FILE_DOWNLOAD_ERROR
           
static String FILE_UPLOAD_ERROR
           
static String FORBIDDEN
           
static String GONE
           
static String HEADER_NOT_MATCH
           
static String INTERNAL_SERVER_ERROR
           
static String METHOD_NOT_ALLOWED
           
static String NOT_ACCEPTABLE
           
static String NOT_FOUND
           
static String NOT_MODIFIED
           
static String OK
           
static String PASSWORD_ERROR
           
static String REQUEST_ENTITY_TOO_LARGE
           
static String SERVICE_UNAVAILABLE
           
static String TOO_MANY_REQUESTS
           
static String UNAUTHORIZED
           
static String UNPROCESSABLE_ENTITY
           
static String UNSUPPORTED_MEDIA_TYPE
           
static String USERNAME_NOT_FOUND
           
 
构造方法摘要
HttpMessage()
           
 
方法摘要
static String getMessage(String key)
           
static HttpStatus getStatus(String key)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

OK

public static final String OK
另请参见:
常量字段值

CREATED

public static final String CREATED
另请参见:
常量字段值

ACCEPTED

public static final String ACCEPTED
另请参见:
常量字段值

NOT_MODIFIED

public static final String NOT_MODIFIED
另请参见:
常量字段值

BAD_REQUEST

public static final String BAD_REQUEST
另请参见:
常量字段值

UNAUTHORIZED

public static final String UNAUTHORIZED
另请参见:
常量字段值

FORBIDDEN

public static final String FORBIDDEN
另请参见:
常量字段值

NOT_FOUND

public static final String NOT_FOUND
另请参见:
常量字段值

API_NOT_FOUND

public static final String API_NOT_FOUND
另请参见:
常量字段值

NOT_ACCEPTABLE

public static final String NOT_ACCEPTABLE
另请参见:
常量字段值

METHOD_NOT_ALLOWED

public static final String METHOD_NOT_ALLOWED
另请参见:
常量字段值

UNSUPPORTED_MEDIA_TYPE

public static final String UNSUPPORTED_MEDIA_TYPE
另请参见:
常量字段值

UNPROCESSABLE_ENTITY

public static final String UNPROCESSABLE_ENTITY
另请参见:
常量字段值

GONE

public static final String GONE
另请参见:
常量字段值

INTERNAL_SERVER_ERROR

public static final String INTERNAL_SERVER_ERROR
另请参见:
常量字段值

SERVICE_UNAVAILABLE

public static final String SERVICE_UNAVAILABLE
另请参见:
常量字段值

TOO_MANY_REQUESTS

public static final String TOO_MANY_REQUESTS
另请参见:
常量字段值

REQUEST_ENTITY_TOO_LARGE

public static final String REQUEST_ENTITY_TOO_LARGE
另请参见:
常量字段值

HEADER_NOT_MATCH

public static final String HEADER_NOT_MATCH
另请参见:
常量字段值

FILE_UPLOAD_ERROR

public static final String FILE_UPLOAD_ERROR
另请参见:
常量字段值

FILE_DOWNLOAD_ERROR

public static final String FILE_DOWNLOAD_ERROR
另请参见:
常量字段值

CORS_FAILED

public static final String CORS_FAILED
另请参见:
常量字段值

USERNAME_NOT_FOUND

public static final String USERNAME_NOT_FOUND
另请参见:
常量字段值

PASSWORD_ERROR

public static final String PASSWORD_ERROR
另请参见:
常量字段值
构造方法详细信息

HttpMessage

public HttpMessage()
方法详细信息

getMessage

public static String getMessage(String key)

getStatus

public static HttpStatus getStatus(String key)


Copyright © 2017. All rights reserved.