/** * <p>Constructor for HttpActor.</p> * * @param type a {@link iqq.im.actor.HttpActor.Type} object. * @param context a {@link iqq.im.core.QQContext} object. * @param action a {@link iqq.im.action.AbstractHttpAction} object. * @param throwable a {@link java.lang.Throwable} object. */ public HttpActor(Type type, QQContext context, AbstractHttpAction action, Exception throwable) { this.type = type; this.context = context; this.action = action; this.throwable = throwable; }
/** * <p>Constructor for HttpActor.</p> * * @param type a {@link iqq.im.actor.HttpActor.Type} object. * @param context a {@link iqq.im.core.QQContext} object. * @param action a {@link iqq.im.action.AbstractHttpAction} object. * @param response a {@link iqq.im.http.QQHttpResponse} object. */ public HttpActor(Type type, QQContext context, AbstractHttpAction action, QQHttpResponse response) { this.type = type; this.context = context; this.action = action; this.response = response; }
/** * <p>Constructor for HttpActor.</p> * * @param type a {@link iqq.im.actor.HttpActor.Type} object. * @param context a {@link iqq.im.core.QQContext} object. * @param action a {@link iqq.im.action.AbstractHttpAction} object. * @param current a long. * @param total a long. */ public HttpActor(Type type, QQContext context, AbstractHttpAction action, long current, long total) { this.type = type; this.context = context; this.action = action; this.current = current; this.total = total; }
/** * <p>Constructor for HttpActor.</p> * * @param type a {@link iqq.im.actor.HttpActor.Type} object. * @param context a {@link iqq.im.core.QQContext} object. * @param action a {@link iqq.im.action.AbstractHttpAction} object. */ public HttpActor(Type type, QQContext context, AbstractHttpAction action) { this.type = type; this.context = context; this.action = action; }
public HttpAdaptor(QQContext context, AbstractHttpAction action) { this.context = context; this.action = action; }
/** * <p>pushHttpAction.</p> * * @param action a {@link iqq.im.action.HttpAction} object. * @return a {@link iqq.im.event.QQActionFuture} object. */ protected AbstractActionFuture pushHttpAction(AbstractHttpAction action) { getContext().pushActor(new HttpActor(HttpActor.Type.BUILD_REQUEST, getContext(), action)); return(action.Future); }