public class QidoRSTool extends Object implements TestTool
Modifier and Type | Class and Description |
---|---|
static class |
QidoRSTool.QidoMetaDataType |
Modifier and Type | Field and Description |
---|---|
private int |
expectedMatches |
private boolean |
fuzzy |
private String |
limit |
private int |
numMatches |
private String |
offset |
private Attributes |
queryAttrs |
private TestResult |
result |
private boolean |
returnAll |
private Attributes |
returnAttrs |
private boolean |
timezoneAdjustment |
private String |
url |
Constructor and Description |
---|
QidoRSTool(String url,
String limit,
boolean fuzzy,
boolean timezone,
boolean returnAll,
String offset) |
Modifier and Type | Method and Description |
---|---|
void |
addAll(Attributes attrs) |
void |
addQueryTag(int tag,
String value)
Add a field and value that should be queried for ("attributeID=value").
|
void |
addReturnTag(int tag)
Add a field that should be included with the responses
("includefield=attributeID").
|
void |
clearQueryKeys() |
int |
getExpectedMatches() |
String |
getLimit() |
String |
getOffset() |
Attributes |
getQueryAttrs() |
TestResult |
getResult() |
Attributes |
getReturnAttrs() |
String |
getUrl() |
void |
init(TestResult resultIn) |
boolean |
isFuzzy() |
boolean |
isReturnAll() |
boolean |
isTimezoneAdjustment() |
private void |
query(String testDescription,
String mediaType) |
void |
queryJSON(String testDescription) |
void |
queryXML(String testDescription) |
void |
setExpectedMatches(int matches)
If this is set to a non-negative number validation step of the returned
matches will be performed.
|
void |
setQueryAttrs(Attributes queryAttrs) |
void |
setReturnAttrs(Attributes returnAttrs) |
private void |
validateMatches(String testDescription) |
private TestResult result
private Attributes queryAttrs
private Attributes returnAttrs
private final boolean fuzzy
private final boolean timezoneAdjustment
private int expectedMatches
private final boolean returnAll
private int numMatches
public QidoRSTool(String url, String limit, boolean fuzzy, boolean timezone, boolean returnAll, String offset)
public void queryJSON(String testDescription) throws IOException, InterruptedException, IncompatibleConnectionException, GeneralSecurityException
public void queryXML(String testDescription) throws IOException, InterruptedException, IncompatibleConnectionException, GeneralSecurityException
private void query(String testDescription, String mediaType) throws IOException
IOException
private void validateMatches(String testDescription)
public void addQueryTag(int tag, String value)
tag
- value
- public void clearQueryKeys()
public void addAll(Attributes attrs)
public void addReturnTag(int tag)
If returnAll (QidoRSParameters.returnAll) is set to true, then this will be ignored (and "includefield=all" will be set instead).
E.g. addReturnTag(Tag.StudyDescription)
tag
- public void setExpectedMatches(int matches)
matches
- public void init(TestResult resultIn)
public TestResult getResult()
public Attributes getQueryAttrs()
public void setQueryAttrs(Attributes queryAttrs)
public boolean isFuzzy()
public boolean isTimezoneAdjustment()
public int getExpectedMatches()
public boolean isReturnAll()
public Attributes getReturnAttrs()
public void setReturnAttrs(Attributes returnAttrs)
Copyright © 2017 dcm4che.org. All rights reserved.