Codota Logo
Status.checkDescription
Code IndexAdd Codota to your IDE (free)

How to use
checkDescription
method
in
org.restlet.data.Status

Best Java code snippets using org.restlet.data.Status.checkDescription (Showing top 1 results out of 315)

  • Common ways to obtain Status
private void myMethod () {
Status s =
  • Codota Iconnew Status(code)
  • Codota IconClientCall clientCall;clientCall.sendRequest(request)
  • Codota IconString reasonPhrase;String description;String uri;new Status(code, reasonPhrase, description, uri)
  • Smart code suggestions by Codota
}
origin: org.restlet/org.restlet

/**
 * Constructor.
 * 
 * @param code
 *            The specification code.
 * @param throwable
 *            The related error or exception.
 * @param name
 *            The name.
 * @param description
 *            The description.
 * @param uri
 *            The URI of the specification describing the method.
 */
public Status(int code, Throwable throwable, final String name,
    final String description, final String uri) {
  super(name, checkDescription(description));
  this.throwable = throwable;
  this.code = code;
  this.uri = uri;
}
org.restlet.dataStatuscheckDescription

Javadoc

Check if the provided description of the status contains forbidden characters such as CR and LF. an IllegalArgumentException is thrown in this case.

Popular methods of Status

  • getCode
    Returns the corresponding code (HTTP or WebDAV or custom code).
  • isSuccess
    Indicates if the status is a success status, meaning "The action was successfully received, understo
  • equals
    Indicates if the status is equal to a given one.
  • isError
    Indicates if the status is an error (client or server) status.
  • getDescription
    Returns the description. This value is typically used by the org.restlet.service.StatusService to bu
  • <init>
    Constructor.
  • isClientError
    Indicates if the status is a client error status, meaning "The request contains bad syntax or cannot
  • valueOf
    Returns the status associated to a code. If an existing constant exists then it is returned, otherwi
  • getThrowable
    Returns the related error or exception.
  • toString
    Returns the reason phrase of the status followed by its HTTP code.
  • getReasonPhrase
    Returns the reason phrase of this status. When supported by the HTTP server connector, this is retur
  • isConnectorError
    Indicates if the status is a connector error status, meaning "The connector failed to send or receiv
  • getReasonPhrase,
  • isConnectorError,
  • getName,
  • isRedirection,
  • isServerError,
  • isInformational,
  • getUri,
  • checkReasonPhrase,
  • isGlobalError

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • getApplicationContext (Context)
  • Menu (java.awt)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JCheckBox (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now