public BulkResponse getBulkResponse(String s) throws JAXRException, InvalidRequestException { if (s == "" || s == null) throw new InvalidRequestException(); return null; }
/** * Constructs a <code>JAXRException</code> object with the given * <code>String</code> as the reason for the exception being thrown * and the given <code>Throwable</code> object as an embedded * Throwable. * * @param reason a description of what caused the exception * @param cause a <code>Throwable</code> object that is to * be embedded in this <code>JAXRException</code> object */ public InvalidRequestException(String reason, Throwable cause) { super (reason); initCause(cause); }
public void setAccessURI(String s) throws JAXRException { if(targetbinding != null) throw new InvalidRequestException("There is already a Target Binding defined"); accessuri = s; }
/** * Constructs a <code>JAXRException</code> object with the given * <code>String</code> as the reason for the exception being thrown * and the given <code>Throwable</code> object as an embedded * Throwable. * * @param reason a description of what caused the exception * @param cause a <code>Throwable</code> object that is to * be embedded in this <code>JAXRException</code> object */ public InvalidRequestException(String reason, Throwable cause) { super (reason); initCause(cause); }
public void setTargetBinding(ServiceBinding sb) throws JAXRException { if(accessuri != null) throw new InvalidRequestException("There is already an Access URI defined"); targetbinding = sb; }
/** * Constructs a <code>JAXRException</code> object initialized * with the given <code>Throwable</code> object. * * @param cause the Throwable that caused this Exception */ public InvalidRequestException(Throwable cause) { super (cause.toString()); initCause(cause); } }
public Connection createConnection() throws JAXRException { //The JAXR spec requires the queryManagerURL to be defined String queryManagerURL = properties.getProperty(QUERYMANAGER_PROPERTY); if (queryManagerURL==null) throw new InvalidRequestException("Missing required property " + QUERYMANAGER_PROPERTY); return new ConnectionImpl(properties); }
/** * Constructs a <code>JAXRException</code> object initialized * with the given <code>Throwable</code> object. * * @param cause the Throwable that caused this Exception */ public InvalidRequestException(Throwable cause) { super (cause.toString()); initCause(cause); } }
throw new InvalidRequestException("queryManager is not set"); } catch (URISyntaxException e) throw new InvalidRequestException("Invalid queryManagerURL: " + queryManagerURL, e); } catch (URISyntaxException e) throw new InvalidRequestException("Invalid lifeCycleManagerURL: " + lifeCycleManagerURL, e);
public Classification createClassification(Concept concept) throws JAXRException, InvalidRequestException { if (concept.getClassificationScheme() == null) { throw new InvalidRequestException("Concept is not under classification scheme"); } Classification classify = (Classification) this.createObject(LifeCycleManager.CLASSIFICATION); classify.setConcept(concept); return classify; }
marshaller = context.createMarshaller(); } catch (URISyntaxException muex) { throw new InvalidRequestException(muex.getMessage(),muex); } catch(JAXBException e) { throw new RuntimeException(e);
throw new InvalidRequestException(muex.getMessage(), muex); } catch(JAXBException e) { throw new RuntimeException(e);
public ClassificationScheme createClassificationScheme(Concept concept) throws JAXRException, InvalidRequestException { //Check if the passed concept has a classificationscheme or has a parent concept if (concept.getParentConcept() != null || concept.getClassificationScheme() != null) { throw new InvalidRequestException("Concept has classificationscheme or has a parent"); } ClassificationScheme cs = new ClassificationSchemeImpl(this); cs.addChildConcept(concept); return cs; }
throw new InvalidRequestException("Unknown interface: " + interfaceName);
List<TModelInfo> tmodelInfoList = infos.getTModelInfo(); if (tmodelInfoList.size() > 1) { throw new InvalidRequestException("Multiple matches found:" + tmodelInfoList.size());
List<TModelInfo> tmodelInfoList = infos.getTModelInfo(); if (tmodelInfoList.size() > 1) { throw new InvalidRequestException("Multiple matches found:" + tmodelInfoList.size());