Codota Logo
ServerStatusException
Code IndexAdd Codota to your IDE (free)

How to use
ServerStatusException
in
flex.messaging.io.amf.client.exceptions

Best Java code snippets using flex.messaging.io.amf.client.exceptions.ServerStatusException (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: com.adobe.flex/com.springsource.flex.messaging

/**
 * Processes the AMF body. Note that this method won't work if batching of
 * AMF messages is supported at some point but for now we are guaranteed to
 * have a single message.
 */
protected Object processAmfBody(ArrayList<MessageBody> messages) throws ServerStatusException
{
  for (MessageBody message : messages)
  {
    String targetURI = message.getTargetURI();
    if (targetURI.endsWith(MessageIOConstants.RESULT_METHOD))
    {
      return message.getData();
    }
    else if (targetURI.endsWith(MessageIOConstants.STATUS_METHOD))
    {
      String exMessage = "Server error";
      HttpResponseInfo responseInfo = generateHttpResponseInfo();
      ServerStatusException exception = new ServerStatusException(exMessage, message.getData(), responseInfo);
      throw exception;
    }
  }
  return null; // Should not happen.
}
origin: ikkisoft/blazer

  stdErr.println("[!] ServerStatusException: " + eServer.toString().trim());
} catch (Exception eGeneric) {
  stdErr.println("[!] Generic Exception: " + eGeneric.toString().trim());
origin: apache/flex-blazeds

/**
 * Processes the AMF body. Note that this method won't work if batching of
 * AMF messages is supported at some point but for now we are guaranteed to
 * have a single message.
 */
protected Object processAmfBody(ArrayList<MessageBody> messages) throws ServerStatusException
{
  for (MessageBody message : messages)
  {
    String targetURI = message.getTargetURI();
    if (targetURI.endsWith(MessageIOConstants.RESULT_METHOD))
    {
      return message.getData();
    }
    else if (targetURI.endsWith(MessageIOConstants.STATUS_METHOD))
    {
      String exMessage = "Server error";
      HttpResponseInfo responseInfo = generateHttpResponseInfo();
      ServerStatusException exception = new ServerStatusException(exMessage, message.getData(), responseInfo);
      throw exception;
    }
  }
  return null; // Should not happen.
}
origin: org.apache.flex.blazeds/flex-messaging-core

/**
 * Processes the AMF body. Note that this method won't work if batching of
 * AMF messages is supported at some point but for now we are guaranteed to
 * have a single message.
 */
protected Object processAmfBody(ArrayList<MessageBody> messages) throws ServerStatusException
{
  for (MessageBody message : messages)
  {
    String targetURI = message.getTargetURI();
    if (targetURI.endsWith(MessageIOConstants.RESULT_METHOD))
    {
      return message.getData();
    }
    else if (targetURI.endsWith(MessageIOConstants.STATUS_METHOD))
    {
      String exMessage = "Server error";
      HttpResponseInfo responseInfo = generateHttpResponseInfo();
      ServerStatusException exception = new ServerStatusException(exMessage, message.getData(), responseInfo);
      throw exception;
    }
  }
  return null; // Should not happen.
}
flex.messaging.io.amf.client.exceptionsServerStatusException

Javadoc

Server status exceptions are thrown by the AMF connection when a server side error is encountered.

Most used methods

  • <init>
    Creates a server status exception with the supplied message, data, and HTTP response info object.
  • toString
    Returns a String representation of the exception.

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JFileChooser (javax.swing)
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