Changeset 2306
- Timestamp:
- 10/12/12 14:35:05 (12 years ago)
- 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 31 31 import javax.xml.stream.XMLStreamReader; 32 32 33 import org.apache.commons.lang.NullArgumentException;34 33 import org.apache.http.HttpEntity; 35 34 import org.apache.http.HttpResponse; … … 245 244 } 246 245 if (handler == null) { 247 throw new Null ArgumentException("handler == null");246 throw new NullPointerException("handler == null"); 248 247 } 249 248 logger.debug("explain"); … … 327 326 } 328 327 if (handler == null) { 329 throw new Null ArgumentException("handler == null");328 throw new NullPointerException("handler == null"); 330 329 } 331 330 logger.debug("searchRetrieve: scanClause = {}", request.getScanClause()); … … 409 408 } 410 409 if (handler == null) { 411 throw new Null ArgumentException("handler == null");410 throw new NullPointerException("handler == null"); 412 411 } 413 412 logger.debug("searchRetrieve: query = {}", request.getQuery()); -
SRUClient/trunk/src/main/java/eu/clarin/sru/fcs/DataView.java
r2304 r2306 1 1 package eu.clarin.sru.fcs; 2 3 import org.apache.commons.lang.NullArgumentException;4 2 5 3 /** … … 15 13 /** 16 14 * Constructor. 17 * 15 * 18 16 * @param mimetype 19 17 * the MIME type of this dataview … … 22 20 * @param ref 23 21 * a reference URI or <code>null</code> 24 * @throws Null ArgumentException22 * @throws NullPointerException 25 23 * if a mandatory argument was not supplied 26 * 24 * 27 25 */ 28 26 protected DataView(String mimetype, String pid, String ref) { 29 27 if (mimetype == null) { 30 throw new Null ArgumentException("mimetype == null");28 throw new NullPointerException("mimetype == null"); 31 29 } 32 30 this.mimetype = mimetype; … … 38 36 /** 39 37 * Get the MIME type of this DataView. 40 * 38 * 41 39 * @return the MIME type of this DataView 42 40 */ … … 48 46 /** 49 47 * Convenience method to check if this DataView is of a certain MIME type. 50 * 48 * 51 49 * @param mimetype 52 50 * the MIME type to test against … … 58 56 public boolean isMimeType(String mimetype) { 59 57 if (mimetype == null) { 60 throw new Null ArgumentException("mimetype == null");58 throw new NullPointerException("mimetype == null"); 61 59 } 62 60 return (this.mimetype.equals(mimetype)); … … 65 63 /** 66 64 * Get the persistent identifier for this DataView. 67 * 65 * 68 66 * @return a persistent identifier or <code>null</code> of this DataView has 69 67 * none … … 76 74 /** 77 75 * Get the reference URI for this DataView. 78 * 76 * 79 77 * @return a reference URI or <code>null</code> of this DataView has 80 78 * none
Note: See TracChangeset
for help on using the changeset viewer.