Exemplo n.º 1
0
 /**
  * <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;
 }
Exemplo n.º 2
0
 /**
  * <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;
 }
Exemplo n.º 3
0
 /**
  * <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;
 }
Exemplo n.º 4
0
 /**
  * <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;
 }
Exemplo n.º 5
0
 public HttpAdaptor(QQContext context, AbstractHttpAction action)
 {
     this.context = context;
     this.action  = action;
 }
Exemplo n.º 6
0
 /**
  * <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);
 }