Examples of UnknownCommandException


Examples of net.rubyeye.xmemcached.exception.UnknownCommandException

  protected void readStatus(ByteBuffer buffer) {
    this.responseStatus = ResponseStatus.parseShort(buffer.getShort());
    switch (this.responseStatus) {
    case NOT_SUPPORTED:
    case UNKNOWN_COMMAND:
      setException(new UnknownCommandException());
      break;
    case AUTH_REQUIRED:
    case FUTHER_AUTH_REQUIRED:
    case VALUE_TOO_BIG:
    case INVALID_ARGUMENTS:
View Full Code Here

Examples of net.rubyeye.xmemcached.exception.UnknownCommandException

  protected void readStatus(ByteBuffer buffer) {
    this.responseStatus = ResponseStatus.parseShort(buffer.getShort());
    switch (this.responseStatus) {
    case NOT_SUPPORTED:
    case UNKNOWN_COMMAND:
      this.setException(new UnknownCommandException());
      break;
    case AUTH_REQUIRED:
    case FUTHER_AUTH_REQUIRED:
    case VALUE_TOO_BIG:
    case INVALID_ARGUMENTS:
View Full Code Here

Examples of net.rubyeye.xmemcached.exception.UnknownCommandException

      break;
    case PREPEND:
      this.opCode = noreply ? OpCode.PREPEND_QUIETLY : OpCode.PREPEND;
      break;
    default:
      throw new UnknownCommandException(
          "Not a append or prepend command:" + cmdType.name());
    }
  }
View Full Code Here

Examples of net.rubyeye.xmemcached.exception.UnknownCommandException

  @Override
  protected void readStatus(ByteBuffer buffer) {
    ResponseStatus responseStatus = ResponseStatus.parseShort(buffer
        .getShort());
    if (responseStatus == ResponseStatus.UNKNOWN_COMMAND) {
      setException(new UnknownCommandException());
    }
  }
View Full Code Here

Examples of net.rubyeye.xmemcached.exception.UnknownCommandException

  protected final boolean decodeError(String line) {
    if (line.startsWith("ERROR")) {
      String[] splits = line.split("ERROR");
      String errorMsg = splits.length >= 2 ? splits[1]
          : "Unknow command " + getCommandType();
      setException(new UnknownCommandException(
          "Response error,error message:" + errorMsg + ",key="
              + this.key));
      countDownLatch();
      return true;
    } else if (line.startsWith("CLIENT_ERROR")) {
View Full Code Here

Examples of net.windwards.options.err.UnknownCommandException

  public String[] parse(String[] args)
  throws NoSuchOptionException, MandatoryValueMissing, InvalidOptionValue {
    String[] remainder = super.parse(args);
    if (this.options.getSelectedCommand() == null) {
      throw new UnknownCommandException("");
    }
    return this.options.getOptionParser().parse(remainder);
  }
View Full Code Here

Examples of org.jnode.nntp.exception.UnknownCommandException

                throw new ProcessorNotFoundException();
            }
            return processor.process(parsedCommand.getParams(), selectedGroupId, selectedArticleId, auth);
        }

        throw new UnknownCommandException();
    }
View Full Code Here

Examples of org.jnode.nntp.exception.UnknownCommandException

    private NntpCommand findCommand(String command) {
        String[] parts = StringUtils.split(command, DELIMITER);
        NntpCommand foundedCommand;

        if (parts == null) {
            throw new UnknownCommandException();
        }

        if (parts.length == 1) {
            foundedCommand = NntpCommand.find(command);
            if (foundedCommand == null) {
                throw new UnknownCommandException();
            }
            foundedCommand.setParams(EMPTY_LIST);
            return foundedCommand;
        }

        foundedCommand = NntpCommand.find(parts[0] + DELIMITER + parts[1]);
        if (foundedCommand == null) {
            foundedCommand = findCommand(parts[0]);
            if (foundedCommand == null) {
                throw new UnknownCommandException();
            } else {
                foundedCommand.setParams(prepareParams(parts, true));
            }
        } else {
            foundedCommand.setParams(prepareParams(parts, false));
View Full Code Here

Examples of org.jnode.nntp.exception.UnknownCommandException


    @Override
    public Collection<String> process(Collection<String> params, Long selectedGroupId, Long selectedArticleId, Auth auth) {
        if (params == null || params.size() != 1) {
            throw new UnknownCommandException();
        }

        String user = params.iterator().next();

        String username = StringUtils.substring(user, 0, StringUtils.indexOf(user, "@"));
View Full Code Here

Examples of org.jnode.nntp.exception.UnknownCommandException

    @Override
    public Collection<String> process(Collection<String> params, Long selectedGroupId, Long selectedArticleId, Auth auth) {

        if (params == null || params.size() != 1) {
            throw new UnknownCommandException();
        }

        String pass = params.iterator().next();

        Link link = dataProvider.link(auth, pass);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.