Modifier and Type | Class and Description |
---|---|
private static class |
QidoRS.ParserType |
Modifier and Type | Field and Description |
---|---|
private boolean |
fuzzy |
private String[] |
includeField |
private boolean |
isJSON |
private String |
limit |
private static Logger |
LOG |
private int |
numMatches |
private String |
offset |
private static org.apache.commons.cli.Options |
options |
private File |
outDir |
private String |
outFileName |
private QidoRS.ParserType |
parserType |
private HashMap<String,String> |
query |
private Attributes |
queryAttrs |
private static ResourceBundle |
rb |
private String |
requestTimeOut |
private List<Attributes> |
responseAttrs |
private boolean |
returnAll |
private Attributes |
returnAttrs |
private boolean |
runningModeTest |
private SAXTransformerFactory |
saxTransformer |
private long |
timeFirst |
private boolean |
timezone |
private String |
url |
private boolean |
xmlIncludeKeyword |
private boolean |
xmlIndent |
private File |
xsltFile |
private Templates |
xsltTemplates |
Constructor and Description |
---|
QidoRS() |
QidoRS(boolean fuzzy,
boolean timezone,
boolean returnAll,
String limit,
String offset,
Attributes queryAttrs,
Attributes returnAttrs,
String mediaType,
String url) |
Modifier and Type | Method and Description |
---|---|
private static void |
addOutputOptions(org.apache.commons.cli.Options opts) |
private static String |
addParam(String url,
String key,
String field) |
private static String |
addRequestParameters(QidoRS main,
String url) |
private static String |
addRequestParametersCLI(QidoRS main,
String url) |
String[] |
getIncludeField() |
String |
getLimit() |
int |
getNumMatches() |
String |
getOffset() |
File |
getOutDir() |
String |
getOutFileName() |
HashMap<String,String> |
getQuery() |
Attributes |
getQueryAttrs() |
String |
getRequestTimeOut() |
List<Attributes> |
getResponseAttrs() |
Attributes |
getReturnAttrs() |
long |
getTimeFirst() |
String |
getUrl() |
File |
getXsltFile() |
boolean |
isFuzzy() |
boolean |
isJSON() |
boolean |
isRunningModeTest() |
boolean |
isTimezone() |
boolean |
isXmlIncludeKeyword() |
boolean |
isXmlIndent() |
protected static String |
keyWordOf(QidoRS main,
ElementDictionary dict,
int tag,
Attributes attrs) |
static void |
main(String[] args) |
private static org.apache.commons.cli.CommandLine |
parseComandLine(String[] args) |
static String |
qido(QidoRS main,
boolean cli) |
private static String |
sendRequest(URL url,
QidoRS main) |
void |
setFuzzy(boolean fuzzy) |
void |
setIncludeField(String[] includeField) |
void |
setJSON(boolean isJSON) |
void |
setLimit(String limit) |
void |
setOffset(String offset) |
void |
setOutDir(File outDir) |
void |
setOutFileName(String outFileName) |
private void |
setQuery(Properties optionProperties) |
void |
setQueryAttrs(Attributes queryAttrs) |
void |
setRequestTimeOut(String requestTimeOut) |
void |
setRunningModeTest(boolean runningModeTest) |
private static void |
setSequenceQueryAttrs(QidoRS main,
String url,
Sequence sequence,
String seqKeyWork) |
void |
setTimeFirst(long timeFirst) |
void |
setTimezone(boolean timezone) |
void |
setUrl(String url) |
void |
setXmlIncludeKeyword(boolean xmlIncludeKeyword) |
void |
setXmlIndent(boolean xmlIndent) |
void |
setXsltFile(File xsltFile) |
private static org.apache.commons.cli.Options options
private static ResourceBundle rb
private SAXTransformerFactory saxTransformer
private Templates xsltTemplates
private String[] includeField
private String outFileName
private String requestTimeOut
private boolean xmlIndent
private boolean xmlIncludeKeyword
private boolean isJSON
private boolean fuzzy
private boolean timezone
private QidoRS.ParserType parserType
private Attributes queryAttrs
private Attributes returnAttrs
private boolean returnAll
private boolean runningModeTest
private final List<Attributes> responseAttrs
private long timeFirst
private int numMatches
public QidoRS()
public QidoRS(boolean fuzzy, boolean timezone, boolean returnAll, String limit, String offset, Attributes queryAttrs, Attributes returnAttrs, String mediaType, String url)
private static org.apache.commons.cli.CommandLine parseComandLine(String[] args) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
private static void addOutputOptions(org.apache.commons.cli.Options opts)
public static String qido(QidoRS main, boolean cli) throws IOException
IOException
private static String sendRequest(URL url, QidoRS main) throws IOException
IOException
private static String addRequestParametersCLI(QidoRS main, String url) throws UnsupportedEncodingException
UnsupportedEncodingException
private static String addRequestParameters(QidoRS main, String url) throws UnsupportedEncodingException
UnsupportedEncodingException
protected static String keyWordOf(QidoRS main, ElementDictionary dict, int tag, Attributes attrs)
private static void setSequenceQueryAttrs(QidoRS main, String url, Sequence sequence, String seqKeyWork)
private static String addParam(String url, String key, String field) throws UnsupportedEncodingException
UnsupportedEncodingException
public String[] getIncludeField()
public void setIncludeField(String[] includeField)
public File getXsltFile()
public void setXsltFile(File xsltFile)
public String getOutFileName()
public void setOutFileName(String outFileName)
public String getRequestTimeOut()
public void setRequestTimeOut(String requestTimeOut)
public boolean isXmlIndent()
public void setXmlIndent(boolean xmlIndent)
public boolean isXmlIncludeKeyword()
public void setXmlIncludeKeyword(boolean xmlIncludeKeyword)
public boolean isJSON()
public boolean isRunningModeTest()
public void setRunningModeTest(boolean runningModeTest)
public void setJSON(boolean isJSON)
public boolean isFuzzy()
public void setFuzzy(boolean fuzzy)
public boolean isTimezone()
public void setTimezone(boolean timezone)
private void setQuery(Properties optionProperties)
public Attributes getQueryAttrs()
public void setQueryAttrs(Attributes queryAttrs)
public long getTimeFirst()
public void setTimeFirst(long timeFirst)
public int getNumMatches()
public List<Attributes> getResponseAttrs()
public Attributes getReturnAttrs()
Copyright © 2017 dcm4che.org. All rights reserved.