Package com.sissi.protocol.error

Examples of com.sissi.protocol.error.ServerError


    this.domain = domain;
  }

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    return protocol.cast(Stream.class).xmlns() ? true : !context.write(Stream.closeWhenOpening(new ServerError().add(InvaildNamespace.DETAIL)).setFrom(this.domain).setTo(protocol.getFrom())).close();
  }
View Full Code Here


    this.minVersion = minVersion;
  }

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    return protocol.cast(Stream.class).version(this.minVersion) ? true : !context.write(Stream.closeWhenOpening(new ServerError().add(UnSupportedVersion.DETAIL)).setFrom(this.domain).setTo(protocol.getFrom())).close();
  }
View Full Code Here

    this.domain = domain;
  }

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    return protocol.to(this.domain, this.localip, this.localhost) ? true : !context.write(Stream.closeWhenOpening(new ServerError().add(HostUnknown.DETAIL)).setFrom(this.domain).setTo(protocol.getFrom())).close();
  }
View Full Code Here

*/
public class RegisterRemoveLeaveProcessor extends ProxyProcessor {

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    return super.find(context.jid()).write(Stream.closeWhenRunning(new ServerError().add(NotAuthorized.DETAIL_ELEMENT))).close();
  }
View Full Code Here

    return this.error;
  }

  public Protocol setError(Error error) {
    this.setType(ProtocolType.ERROR);
    this.error = ServerError.class == error.getClass() ? ServerError.class.cast(error) : new ServerError(error);
    return this;
  }
View Full Code Here

*/
public class PresenceCheckBindingProcessor implements Input {

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    return context.binding() ? true : !context.write(Stream.closeWhenRunning(new ServerError().add(NotAuthorized.DETAIL_STREAM)).setFrom(context.domain())).close();
  }
View Full Code Here

TOP

Related Classes of com.sissi.protocol.error.ServerError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.