Code example for HttpDelete

0
        if( !( args[0] instanceof String ) )
        { 
            throw new IllegalArgumentException( "First argument must be a string." ); //$NON-NLS-1$
        } 
 
        HttpDelete deleteAPIMethod = new HttpDelete();
 
        return httpJSONAPI( deleteAPIMethod, args );
    } 
 
    public String getHost()
    { 
        return hostname;
    } 
 
    private HttpClient getHttpClient()
    { 
        if( httpClient == null )
        { 
            httpClient = new DefaultHttpClient();