Class PreparerBuilder<T>

  • Type Parameters:
    T - the type of "Preparer" which is build by this builder instance.

    public abstract class PreparerBuilder<T>
    extends Object

    The builder class of "Preparer".

    "Preparer"s are the components which are used for requesting the delivery of a push message.

    Typically, a subclass of this class provides methods creating an object that represents an HTTP request. In order to do this, "Preparer"s

    • extract and set a URL of a push service from a given push subscription,
    • generate and set proper HTTP header fields(e.g. the "Authorization" header field) with given information and
    • encrypt a given push message and put it into the request body.
    Author:
    Tomoki Sato