Changeset 2306


Ignore:
Timestamp:
10/12/12 14:35:05 (12 years ago)
Author:
oschonef
Message:
Location:
SRUClient/trunk/src/main/java/eu/clarin/sru
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • SRUClient/trunk/src/main/java/eu/clarin/sru/client/SRUSimpleClient.java

    r2203 r2306  
    3131import javax.xml.stream.XMLStreamReader;
    3232
    33 import org.apache.commons.lang.NullArgumentException;
    3433import org.apache.http.HttpEntity;
    3534import org.apache.http.HttpResponse;
     
    245244        }
    246245        if (handler == null) {
    247             throw new NullArgumentException("handler == null");
     246            throw new NullPointerException("handler == null");
    248247        }
    249248        logger.debug("explain");
     
    327326        }
    328327        if (handler == null) {
    329             throw new NullArgumentException("handler == null");
     328            throw new NullPointerException("handler == null");
    330329        }
    331330        logger.debug("searchRetrieve: scanClause = {}", request.getScanClause());
     
    409408        }
    410409        if (handler == null) {
    411             throw new NullArgumentException("handler == null");
     410            throw new NullPointerException("handler == null");
    412411        }
    413412        logger.debug("searchRetrieve: query = {}", request.getQuery());
  • SRUClient/trunk/src/main/java/eu/clarin/sru/fcs/DataView.java

    r2304 r2306  
    11package eu.clarin.sru.fcs;
    2 
    3 import org.apache.commons.lang.NullArgumentException;
    42
    53/**
     
    1513    /**
    1614     * Constructor.
    17      * 
     15     *
    1816     * @param mimetype
    1917     *            the MIME type of this dataview
     
    2220     * @param ref
    2321     *            a reference URI or <code>null</code>
    24      * @throws NullArgumentException
     22     * @throws NullPointerException
    2523     *             if a mandatory argument was not supplied
    26      * 
     24     *
    2725     */
    2826    protected DataView(String mimetype, String pid, String ref) {
    2927        if (mimetype == null) {
    30             throw new NullArgumentException("mimetype == null");
     28            throw new NullPointerException("mimetype == null");
    3129        }
    3230        this.mimetype = mimetype;
     
    3836    /**
    3937     * Get the MIME type of this DataView.
    40      * 
     38     *
    4139     * @return the MIME type of this DataView
    4240     */
     
    4846    /**
    4947     * Convenience method to check if this DataView is of a certain MIME type.
    50      * 
     48     *
    5149     * @param mimetype
    5250     *            the MIME type to test against
     
    5856    public boolean isMimeType(String mimetype) {
    5957        if (mimetype == null) {
    60             throw new NullArgumentException("mimetype == null");
     58            throw new NullPointerException("mimetype == null");
    6159        }
    6260        return (this.mimetype.equals(mimetype));
     
    6563    /**
    6664     * Get the persistent identifier for this DataView.
    67      * 
     65     *
    6866     * @return a persistent identifier or <code>null</code> of this DataView has
    6967     *         none
     
    7674    /**
    7775     * Get the reference URI for this DataView.
    78      * 
     76     *
    7977     * @return a reference URI or <code>null</code> of this DataView has
    8078     *         none
Note: See TracChangeset for help on using the changeset viewer.