Package ej.rest.web

Class Resty.Option

  • Direct Known Subclasses:
    Resty.Timeout
    Enclosing class:
    Resty

    public abstract static class Resty.Option
    extends Object
    Base class for Resty options. You can also create your own options. Override one of the apply methods to change an object like URLConnection before it is being used.
    • Constructor Detail

      • Option

        public Option()
    • Method Detail

      • apply

        public void apply​(URLConnection aConnection)
        Override this to get access to the URLConnection before the actual connection is made.
        Parameters:
        aConnection -
      • init

        public void init​(Resty resty)
        Callback from Resty when the option is set on the Resty instance. Called before any connection is made. Override to set initial properties