Package flex.messaging.io.amf.client.exceptions.ServerStatusException

Examples of flex.messaging.io.amf.client.exceptions.ServerStatusException.HttpResponseInfo


   *
   * @return The HTTP response info for the server status exception.
   */
  protected HttpResponseInfo generateHttpResponseInfo()
  {
    HttpResponseInfo httpResponseInfo = null;
    try
    {
      int responseCode = postMethod.getStatusCode();
      String responseMessage = postMethod.getResponseBodyAsString();
      httpResponseInfo = new HttpResponseInfo( responseCode, responseMessage );
    }
    catch( IOException ignore )
    {
    }
    return httpResponseInfo;
View Full Code Here


     *
     * @return The HTTP response info for the server status exception.
     */
    protected HttpResponseInfo generateHttpResponseInfo()
    {
        HttpResponseInfo httpResponseInfo = null;
        try
        {
            int responseCode = urlConnection.getResponseCode();
            String responseMessage = urlConnection.getResponseMessage();
            httpResponseInfo = new HttpResponseInfo(responseCode, responseMessage);
        }
        catch (IOException ignore)
        {
        }
        return httpResponseInfo;
View Full Code Here

                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.
View Full Code Here

     * Generates the HTTP response info for the server status exception.
     *
     * @return The HTTP response info for the server status exception.
     */
    protected HttpResponseInfo generateHttpResponseInfo() {
        HttpResponseInfo httpResponseInfo = null;
        try {
            int responseCode = 0;
            if (postMethod.hasHttpResponse()) {
                responseCode = postMethod.getHttpResponse().getStatusLine().getStatusCode();
            }
            String responseMessage = postMethod.getResponseBodyAsString();
            httpResponseInfo = new HttpResponseInfo(responseCode, responseMessage);
        } catch (IOException ignore) {
        }
        return httpResponseInfo;
    }
View Full Code Here

TOP

Related Classes of flex.messaging.io.amf.client.exceptions.ServerStatusException.HttpResponseInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.