Package java.security

Examples of java.security.InvalidParameterException


        return ((ContentBytes)_tupleEntry.getObject(CONTENT_FN)).getLength();
    }
   
    public void setContent(ContentBytes content) {
        if (content == null) {
            throw new InvalidParameterException("content cannot be null");
        }

        _tupleEntry.setObject(CONTENT_FN, content);
    }
View Full Code Here


        return _tupleEntry.getString(CONTENT_TYPE_FN);
    }

    public void setContentType(String contentType) {
        if (contentType == null) {
            throw new InvalidParameterException("contentType cannot be null");
        }

        _tupleEntry.setString(CONTENT_TYPE_FN, contentType);
    }
View Full Code Here

        return new HttpHeaders((Tuple)_tupleEntry.getObject(HTTP_HEADERS_FN));
    }

    public void setHeaders(HttpHeaders headers) {
        if (headers == null) {
            throw new InvalidParameterException("headers cannot be null");
        }

        _tupleEntry.setObject(HTTP_HEADERS_FN, headers.toTuple());
    }
View Full Code Here

        this(maxInMemorySize, new DefaultComparator());
    }
   
    public DiskQueue(int maxInMemorySize, Comparator<? super E> comparator) {
        if (maxInMemorySize < 1) {
            throw new InvalidParameterException("DiskQueue max in-memory size must be at least one");
        }

        _memoryQueue = new IndexQueue<E>(maxInMemorySize, comparator);
        _refillMemoryRatio = DEFAULT_REFILL_RATIO;
    }
View Full Code Here

    String dirName = inputPath.getName();
    Matcher dirNameMatcher = LOOP_DIRNAME_PATTERN.matcher(dirName);
    if (dirNameMatcher.matches()) {
      return Integer.parseInt(dirNameMatcher.group(1));
    } else {
      throw new InvalidParameterException(String.format(
          "%s is not a valid loop directory name", dirName));
    }
  }
View Full Code Here

    public ParserPolicy(int maxParseDuration,
                        Set<String> linkTags,
                        Set<String> linkAttributeTypes) {
        if ((maxParseDuration <= 0) && (maxParseDuration != NO_MAX_PARSE_DURATION)) {
            throw new InvalidParameterException("maxParseDuration must be > 0: " + maxParseDuration);
        }
       
        // Catch common error of specifying maxParseDuration in seconds versus milliseconds
        if (maxParseDuration < 100)  {
            throw new InvalidParameterException("maxParseDuration must be milliseconds, not seconds: " + maxParseDuration);
        }
       
        _maxParseDuration = maxParseDuration;
        _linkAttributeTypes = linkAttributeTypes;
        _linkTags = linkTags;
View Full Code Here

        return _tupleEntry.getString(BASE_URL_FN);
    }

    public void setBaseUrl(String baseUrl) {
        if (baseUrl == null) {
            throw new InvalidParameterException("baseUrl cannot be null");
        }

        _tupleEntry.setString(BASE_URL_FN, baseUrl);
    }
View Full Code Here

        return _tupleEntry.getString(FETCHED_URL_FN);
    }

    public void setFetchedUrl(String fetchedUrl) {
        if (fetchedUrl == null) {
            throw new InvalidParameterException("fetchedUrl cannot be null");
        }

        _tupleEntry.setString(FETCHED_URL_FN, fetchedUrl);
    }
View Full Code Here

        return ((ContentBytes)_tupleEntry.getObject(CONTENT_FN)).getLength();
    }
   
    public void setContent(ContentBytes content) {
        if (content == null) {
            throw new InvalidParameterException("content cannot be null");
        }

        _tupleEntry.setObject(CONTENT_FN, content);
    }
View Full Code Here

        return _tupleEntry.getString(CONTENT_TYPE_FN);
    }

    public void setContentType(String contentType) {
        if (contentType == null) {
            throw new InvalidParameterException("contentType cannot be null");
        }

        _tupleEntry.setString(CONTENT_TYPE_FN, contentType);
    }
View Full Code Here

TOP

Related Classes of java.security.InvalidParameterException

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.