Best code examples for Android HttpException class (org.apache.http.HttpException)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android HttpException class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android HttpException examples from Open Source projects
This code example shows how to use the following methods: getMessage
        this.log.error("HTTP connection " + conn + ": " + ex.getMessage(), ex);
        this.handler.exception(conn, ex);
    } 
 
    public void exception(final NHttpClientConnection conn, final HttpException ex) {
        this.log.error("HTTP connection " + conn + ": " + ex.getMessage(), ex);
        this.handler.exception(conn, ex);
    } 
 
    public void requestReady(final NHttpClientConnection conn) {
        if (this.log.isDebugEnabled()) {
            this.log.debug("HTTP connection " + conn + ": InRequest ready" + getRequestMessageID(conn));
        } 
        this.handler.requestReady(conn);
    } 
 
    public void outputReady(final NHttpClientConnection conn, final ContentEncoder encoder) {
        if (this.log.isDebugEnabled()) {
            this.log.debug("HTTP connection " + conn + ": Output ready" + getRequestMessageID(conn));
        } 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: printStackTrace
This code example shows how to use the following methods: getMessage
this.handler.exception(conn, ex);
    } 
 
    public void exception(final NHttpServerConnection conn, final HttpException ex) {
        this.log.error("HTTP Error occured on connection " + conn + ": " + ex.getMessage(), ex);
        this.handler.exception(conn, ex);
    } 
 
    public void requestReceived(final NHttpServerConnection conn) {
        HttpRequest request = conn.getHttpRequest();
        if (this.log.isDebugEnabled()) {
            this.log.debug("HTTP InRequest Received on connection " + conn + ": "
                    + request.getRequestLine());
        } 
        this.handler.requestReceived(conn);
    } 
 
    public void outputReady(final NHttpServerConnection conn, final ContentEncoder encoder) {
        if (this.log.isDebugEnabled()) {
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: printStackTrace
    } 
    catch (IOException e) {
      e.printStackTrace();
    } 
    catch (HttpException e) {
      e.printStackTrace();
    } 
    return conn;
  } 
   
  public String accessKeyID() {
    String accessKeyID = ERXProperties.decryptedStringForKey("er.attachment." + configurationName() + ".cf.apiAccessKey");
    if (accessKeyID == null) {
      accessKeyID = ERXProperties.decryptedStringForKey("er.attachment.cf.apiAccessKey");
    } 
    if (accessKeyID == null) {
      throw new IllegalArgumentException("There is no 'er.attachment." + configurationName() + ".cf.apiAccessKey' or 'er.attachment.cf.apiAccessKey' property set.");
    } 
    return accessKeyID;
  } 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMessage
          + "' to CloudFiles: Error " + e.getHttpStatusCode()
          + ": " + e.getHttpStatusMessage());
    } 
    catch (HttpException e) {
      throw new IOException("Failed to delete '" + bucket + "/" + key
          + "' to CloudFiles: Error " + e.getMessage());
    } 
	} 
 
	@Override 
	public void attachmentInserted(ERCloudFilesAttachment attachment) {
		super.attachmentInserted(attachment);
		_queue.enqueue(attachment);
	} 
 
	public void performUpload(File uploadedFile, String originalFileName,
			String bucket, String key, String mimeType,
			ERCloudFilesAttachment attachment) throws MalformedURLException,
			IOException { 
		try { 
Full Snippet Info
6
CodeRank
Related Android HttpException Questions & Answers:
See Code Examples for Android HttpException Methods: