Tabnine Logo
Status.isClientError
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.sonatype.nexus/nexus-test-utils

@Override
protected boolean matchesSafely( Status item )
{
  return item.isClientError();
}
origin: org.sonatype.nexus/nexus-test-harness-launcher

@Override
protected boolean matchesSafely(Status item) {
 return item.isClientError();
}
origin: ontopia/ontopia

public boolean isClientError() {
  return status.isClientError();
}
origin: DeviceConnect/DeviceConnect-Android

/**
 * Indicates if the status is a client error status, meaning "The request
 * contains bad syntax or cannot be fulfilled".
 * 
 * @return True if the status is a client error status.
 */
public boolean isClientError() {
  return isClientError(getCode());
}
origin: org.restlet/org.restlet

/**
 * Indicates if the status is a client error status, meaning "The request
 * contains bad syntax or cannot be fulfilled".
 * 
 * @return True if the status is a client error status.
 */
public boolean isClientError() {
  return isClientError(getCode());
}
origin: org.restlet.osgi/org.restlet

/**
 * Indicates if the status is a client error status, meaning "The request
 * contains bad syntax or cannot be fulfilled".
 * 
 * @return True if the status is a client error status.
 */
public boolean isClientError() {
  return isClientError(getCode());
}
origin: DeviceConnect/DeviceConnect-Android

/**
 * Indicates if the status is an error (client or server) status.
 * 
 * @param code
 *            The code of the status.
 * @return True if the status is an error (client or server) status.
 */
public static boolean isError(int code) {
  return isClientError(code) || isServerError(code)
      || isConnectorError(code);
}
origin: org.restlet/org.restlet

/**
 * Indicates if the status is an error (client or server) status.
 * 
 * @param code
 *            The code of the status.
 * @return True if the status is an error (client or server) status.
 */
public static boolean isError(int code) {
  return isClientError(code) || isServerError(code)
      || isConnectorError(code);
}
origin: org.restlet.osgi/org.restlet

/**
 * Indicates if the status is an error (client or server) status.
 * 
 * @param code
 *            The code of the status.
 * @return True if the status is an error (client or server) status.
 */
public static boolean isError(int code) {
  return isClientError(code) || isServerError(code)
      || isConnectorError(code) || isGlobalError(code);
}
origin: org.restlet.jee/org.restlet.ext.wadl

/**
 * Indicates if the application and all its resources can be described using
 * WADL.
 * 
 * @param remainingPart
 *            The URI remaining part.
 * @param request
 *            The request to handle.
 * @param response
 *            The response to update.
 */
protected boolean canDescribe(String remainingPart, Request request,
    Response response) {
  return isAutoDescribing()
      && Method.OPTIONS.equals(request.getMethod())
      && (response.getStatus().isClientError() || !response
          .isEntityAvailable())
      && ("/".equals(remainingPart) || "".equals(remainingPart));
}
origin: org.restlet.osgi/org.restlet

} else if (status.isConnectorError()) {
  level = Level.INFO;
} else if (status.isClientError()) {
  level = Level.FINE;
origin: org.restlet.osgi/org.restlet.ext.platform

if (e.getStatus().isConnectorError()) {
  throw new RuntimeException("Restlet Cloud communication error. Please check the root cause below.", e);
} else if (e.getStatus().isClientError()) {
  if (e.getStatus().getCode() == 403) {
    throw new RuntimeException("Restlet Cloud Authentication fails. Check that you provide valid credentials.", e);
origin: org.restlet.gae/org.restlet.ext.platform

if (e.getStatus().isConnectorError()) {
  throw new RuntimeException("Restlet Cloud communication error. Please check the root cause below.", e);
} else if (e.getStatus().isClientError()) {
  if (e.getStatus().getCode() == 403) {
    throw new RuntimeException("Restlet Cloud Authentication fails. Check that you provide valid credentials.", e);
origin: org.restlet.jee/org.restlet.ext.apispark

if (e.getStatus().isConnectorError()) {
  throw new RuntimeException("APISpark communication error. Please check the root cause below.", e);
} else if (e.getStatus().isClientError()) {
  if (e.getStatus().getCode() == 403) {
    throw new RuntimeException("APISpark Authentication fails. Check that you provide valid credentials.", e);
origin: org.restlet.jee/org.restlet.ext.platform

if (e.getStatus().isConnectorError()) {
  throw new RuntimeException("Restlet Cloud communication error. Please check the root cause below.", e);
} else if (e.getStatus().isClientError()) {
  if (e.getStatus().getCode() == 403) {
    throw new RuntimeException("Restlet Cloud Authentication fails. Check that you provide valid credentials.", e);
origin: org.restlet.osgi/org.restlet

/**
 * Invoked when an error or an exception is caught during initialization,
 * handling or releasing. By default, updates the responses's status with
 * the result of {@link org.restlet.service.StatusService#toStatus(Throwable, Resource)}.
 * 
 * @param throwable
 *            The caught error or exception.
 */
protected void doCatch(Throwable throwable) {
  Level level = Level.INFO;
  Status status = getStatusService().toStatus(throwable, this);
  if (status.isServerError()) {
    level = Level.SEVERE;
  } else if (status.isConnectorError()) {
    level = Level.INFO;
  } else if (status.isClientError()) {
    level = Level.FINE;
  }
  getLogger().log(level, "Exception or error caught in server resource",
      throwable);
  if (getResponse() != null) {
    getResponse().setStatus(status);
    Representation errorEntity = getStatusService().toRepresentation(
        status, this);
    getResponse().setEntity(errorEntity);
  }
}
origin: org.restlet.jse/org.restlet.ext.platform

if (e.getStatus().isConnectorError()) {
  throw new RuntimeException("Restlet Cloud communication error. Please check the root cause below.", e);
} else if (e.getStatus().isClientError()) {
  if (e.getStatus().getCode() == 403) {
    throw new RuntimeException("Restlet Cloud Authentication fails. Check that you provide valid credentials.", e);
org.restlet.dataStatusisClientError

Javadoc

Indicates if the status is a client error status, meaning "The request contains bad syntax or cannot be fulfilled".

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.
  • 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
  • getName
    Returns the name of this status.
  • isConnectorError,
  • getName,
  • isRedirection,
  • isServerError,
  • isInformational,
  • getUri,
  • checkReasonPhrase,
  • isGlobalError,
  • checkDescription

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now