Class RobustResty

java.lang.Object
net.jalbum.resty.web.Resty
net.jalbum.resty.web.RobustResty

public class RobustResty extends net.jalbum.resty.web.Resty
Like Resty, but won't throw IOException on http errors Check responseCode with http().getResponseCode() on resulting resources
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.jalbum.resty.web.Resty

    net.jalbum.resty.web.Resty.Option, net.jalbum.resty.web.Resty.Proxy, net.jalbum.resty.web.Resty.Timeout
  • Field Summary

    Fields inherited from class net.jalbum.resty.web.Resty

    DEFAULT_USER_AGENT, MOZILLA, userAgent
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.jalbum.resty.web.FormContent
    form(Map data)
    Create form content as application/x-www-form-urlencoded (i.e.
    text(URI anUri)
     
    text(URI anUri, net.jalbum.resty.web.AbstractContent content)
     
    xml(URI anUri)
     
    xml(URI anUri, net.jalbum.resty.web.AbstractContent requestContent)
     

    Methods inherited from class net.jalbum.resty.web.Resty

    addAdditionalHeaders, addStandardHeaders, alwaysSend, authenticate, authenticate, authenticateForRealm, bytes, bytes, bytes, bytes, content, content, createBinaryResource, createTextResource, createXMLResource, data, data, delete, doGET, dontSend, doPOSTOrPUT, enc, fillResourceFromURL, form, form, getAdditionalHeaders, identifyAsMozilla, identifyAsResty, ignoreAllCerts, openConnection, put, setOptions, setProxy, text, text, xml, xml, xpath

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RobustResty

      public RobustResty()
  • Method Details

    • text

      public RobustTextResource text(URI anUri) throws IOException
      Overrides:
      text in class net.jalbum.resty.web.Resty
      Throws:
      IOException
    • text

      public RobustTextResource text(URI anUri, net.jalbum.resty.web.AbstractContent content) throws IOException
      Overrides:
      text in class net.jalbum.resty.web.Resty
      Throws:
      IOException
    • xml

      public RobustXMLResource xml(URI anUri) throws IOException
      Overrides:
      xml in class net.jalbum.resty.web.Resty
      Throws:
      IOException
    • xml

      public RobustXMLResource xml(URI anUri, net.jalbum.resty.web.AbstractContent requestContent) throws IOException
      Overrides:
      xml in class net.jalbum.resty.web.Resty
      Throws:
      IOException
    • form

      public static net.jalbum.resty.web.FormContent form(Map data)
      Create form content as application/x-www-form-urlencoded (i.e. a=b&c=d&...)
      Parameters:
      data - , name value pairs of data (Strings)
      Returns:
      a content object to be usable for upload