Package org.alfresco.solr.client
Class Status
java.lang.Object
org.alfresco.solr.client.Status
Status code constants for SOLR.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
Gets the description of the status codeGets the short name of the status codeboolean
void
setCode
(int code) void
Helper method to set the code and message.void
setException
(Throwable exception) void
setLocation
(String location) void
setMessage
(String message) void
setRedirect
(boolean redirect) toString()
-
Field Details
-
STATUS_CONTINUE
public static final int STATUS_CONTINUE- See Also:
-
STATUS_SWITCHING_PROTOCOLS
public static final int STATUS_SWITCHING_PROTOCOLS- See Also:
-
STATUS_OK
public static final int STATUS_OK- See Also:
-
STATUS_CREATED
public static final int STATUS_CREATED- See Also:
-
STATUS_ACCEPTED
public static final int STATUS_ACCEPTED- See Also:
-
STATUS_NON_AUTHORITATIVE_INFORMATION
public static final int STATUS_NON_AUTHORITATIVE_INFORMATION- See Also:
-
STATUS_NO_CONTENT
public static final int STATUS_NO_CONTENT- See Also:
-
STATUS_RESET_CONTENT
public static final int STATUS_RESET_CONTENT- See Also:
-
STATUS_PARTIAL_CONTENT
public static final int STATUS_PARTIAL_CONTENT- See Also:
-
STATUS_MULTIPLE_CHOICES
public static final int STATUS_MULTIPLE_CHOICES- See Also:
-
STATUS_MOVED_PERMANENTLY
public static final int STATUS_MOVED_PERMANENTLY- See Also:
-
STATUS_MOVED_TEMPORARILY
public static final int STATUS_MOVED_TEMPORARILY- See Also:
-
STATUS_FOUND
public static final int STATUS_FOUND- See Also:
-
STATUS_SEE_OTHER
public static final int STATUS_SEE_OTHER- See Also:
-
STATUS_NOT_MODIFIED
public static final int STATUS_NOT_MODIFIED- See Also:
-
STATUS_USE_PROXY
public static final int STATUS_USE_PROXY- See Also:
-
STATUS_TEMPORARY_REDIRECT
public static final int STATUS_TEMPORARY_REDIRECT- See Also:
-
STATUS_BAD_REQUEST
public static final int STATUS_BAD_REQUEST- See Also:
-
STATUS_UNAUTHORIZED
public static final int STATUS_UNAUTHORIZED- See Also:
-
STATUS_PAYMENT_REQUIRED
public static final int STATUS_PAYMENT_REQUIRED- See Also:
-
STATUS_FORBIDDEN
public static final int STATUS_FORBIDDEN- See Also:
-
STATUS_NOT_FOUND
public static final int STATUS_NOT_FOUND- See Also:
-
STATUS_METHOD_NOT_ALLOWED
public static final int STATUS_METHOD_NOT_ALLOWED- See Also:
-
STATUS_NOT_ACCEPTABLE
public static final int STATUS_NOT_ACCEPTABLE- See Also:
-
STATUS_PROXY_AUTHENTICATION_REQUIRED
public static final int STATUS_PROXY_AUTHENTICATION_REQUIRED- See Also:
-
STATUS_REQUEST_TIMEOUT
public static final int STATUS_REQUEST_TIMEOUT- See Also:
-
STATUS_CONFLICT
public static final int STATUS_CONFLICT- See Also:
-
STATUS_GONE
public static final int STATUS_GONE- See Also:
-
STATUS_LENGTH_REQUIRED
public static final int STATUS_LENGTH_REQUIRED- See Also:
-
STATUS_PRECONDITION_FAILED
public static final int STATUS_PRECONDITION_FAILED- See Also:
-
STATUS_REQUEST_ENTITY_TOO_LARGE
public static final int STATUS_REQUEST_ENTITY_TOO_LARGE- See Also:
-
STATUS_REQUEST_URI_TOO_LONG
public static final int STATUS_REQUEST_URI_TOO_LONG- See Also:
-
STATUS_UNSUPPORTED_MEDIA_TYPE
public static final int STATUS_UNSUPPORTED_MEDIA_TYPE- See Also:
-
STATUS_REQUESTED_RANGE_NOT_SATISFIABLE
public static final int STATUS_REQUESTED_RANGE_NOT_SATISFIABLE- See Also:
-
STATUS_EXPECTATION_FAILED
public static final int STATUS_EXPECTATION_FAILED- See Also:
-
STATUS_INTERNAL_SERVER_ERROR
public static final int STATUS_INTERNAL_SERVER_ERROR- See Also:
-
STATUS_NOT_IMPLEMENTED
public static final int STATUS_NOT_IMPLEMENTED- See Also:
-
STATUS_BAD_GATEWAY
public static final int STATUS_BAD_GATEWAY- See Also:
-
STATUS_SERVICE_UNAVAILABLE
public static final int STATUS_SERVICE_UNAVAILABLE- See Also:
-
STATUS_GATEWAY_TIMEOUT
public static final int STATUS_GATEWAY_TIMEOUT- See Also:
-
STATUS_HTTP_VERSION_NOT_SUPPORTED
public static final int STATUS_HTTP_VERSION_NOT_SUPPORTED- See Also:
-
-
Constructor Details
-
Status
public Status()
-
-
Method Details
-
setCode
Helper method to set the code and message.Redirect is set to true.
- Parameters:
code
- codemessage
- message
-
setException
- Parameters:
exception
- Throwable
-
getException
- Returns:
- exception
-
setMessage
- Parameters:
message
- String
-
getMessage
- Returns:
- message
-
setRedirect
public void setRedirect(boolean redirect) - Parameters:
redirect
- redirect to status code response
-
getRedirect
public boolean getRedirect()- Returns:
- redirect to status code response
-
setCode
public void setCode(int code) - Parameters:
code
- status code- See Also:
-
javax.servlet.http.HTTPServletResponse
-
getCode
public int getCode()- Returns:
- status code
-
getCodeName
Gets the short name of the status code- Returns:
- status code name
-
setLocation
- Parameters:
location
- location response-header- See Also:
-
javax.servlet.http.HTTPServletResponse
-
getLocation
- Returns:
- location
-
getCodeDescription
Gets the description of the status code- Returns:
- status code description
-
toString
-