org.wymiwyg.commons.util.http
Class HttpURLTools

java.lang.Object
  extended by org.wymiwyg.commons.util.http.HttpURLTools

public class HttpURLTools
extends Object

Author:
reto

Constructor Summary
HttpURLTools(URL url)
           
HttpURLTools(URL url, String acceptLanguage)
           
 
Method Summary
 String getAccept()
           
 String getAcceptLanguage()
           
 URLConnection getConnection()
           
 InputStream openStream()
           
 void setAccept(String accept)
           
 void setAcceptLanguage(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpURLTools

public HttpURLTools(URL url)

HttpURLTools

public HttpURLTools(URL url,
                    String acceptLanguage)
Method Detail

openStream

public InputStream openStream()
                       throws IOException
Throws:
IOException

getConnection

public URLConnection getConnection()
                            throws IOException
Throws:
IOException

getAcceptLanguage

public String getAcceptLanguage()
Returns:

setAcceptLanguage

public void setAcceptLanguage(String string)
Parameters:
string -

getAccept

public String getAccept()
Returns:
Returns the accept.

setAccept

public void setAccept(String accept)
Parameters:
accept - The accept to set.


Copyright © 2011. All Rights Reserved.