public class WadoRS extends Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
WadoRS.ResponseWriter |
| Modifier and Type | Field and Description |
|---|---|
private String[] |
acceptTypes |
private static byte[] |
copyHolder |
private boolean |
dumpHeader |
private boolean |
isMetadata |
private static Logger |
LOG |
private static org.apache.commons.cli.Options |
options |
private File |
outDir |
private int |
partIndex |
private static ResourceBundle |
rb |
private String |
requestTimeOut |
private WadoRSResponse |
response |
private Map<String,java.nio.file.Path> |
retrievedInstances |
private SAXTransformerFactory |
saxTransformer |
private String |
url |
private WadoRS.ResponseWriter |
writerType |
private boolean |
xmlIncludeKeyword |
private boolean |
xmlIndent |
private File |
xsltFile |
private Templates |
xsltTemplates |
| Constructor and Description |
|---|
WadoRS() |
WadoRS(String url,
File retrieveDir) |
| Modifier and Type | Method and Description |
|---|---|
private static void |
addOutputOptions(org.apache.commons.cli.Options opts) |
private static String[] |
compileAcceptHeader(String[] acceptTypes) |
private static String |
dumpHeader(WadoRS main,
Map<String,List<String>> headerFields) |
String[] |
getAcceptType() |
int |
getNextPartIndex() |
File |
getOutDir() |
String |
getRequestTimeOut() |
WadoRSResponse |
getResponse() |
Map<String,java.nio.file.Path> |
getRetrievedInstances() |
String |
getUrl() |
File |
getXsltFile() |
private static boolean |
isMetaDataURL(String url) |
boolean |
isXmlIncludeKeyword() |
boolean |
isXmlIndent() |
static void |
main(String[] args) |
private static org.apache.commons.cli.CommandLine |
parseComandLine(String[] args) |
private static SimpleHTTPResponse |
sendRequest(WadoRS main) |
void |
setAcceptType(String[] acceptTypes) |
void |
setDumpHeaders(boolean b) |
void |
setOutDir(File outDir) |
void |
setRequestTimeOut(String requestTimeOut) |
void |
setUrl(String url) |
void |
setXmlIncludeKeyword(boolean xmlIncludeKeyword) |
void |
setXmlIndent(boolean xmlIndent) |
void |
setXsltFile(File xsltFile) |
void |
wadors() |
private static String |
writeHeader(Map<String,List<String>> headerFields,
File f) |
private static byte[] copyHolder
private static org.apache.commons.cli.Options options
private static ResourceBundle rb
private SAXTransformerFactory saxTransformer
private Templates xsltTemplates
private String requestTimeOut
private boolean xmlIndent
private boolean xmlIncludeKeyword
private boolean isMetadata
private String[] acceptTypes
private WadoRS.ResponseWriter writerType
private int partIndex
private boolean dumpHeader
private final Map<String,java.nio.file.Path> retrievedInstances
private WadoRSResponse response
private static org.apache.commons.cli.CommandLine parseComandLine(String[] args) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseExceptionprivate static void addOutputOptions(org.apache.commons.cli.Options opts)
public void wadors() throws IOException
IOExceptionprivate static boolean isMetaDataURL(String url)
private static SimpleHTTPResponse sendRequest(WadoRS main) throws IOException
IOExceptionprivate static String dumpHeader(WadoRS main, Map<String,List<String>> headerFields) throws FileNotFoundException
FileNotFoundExceptionprivate static String writeHeader(Map<String,List<String>> headerFields, File f) throws FileNotFoundException
FileNotFoundExceptionprivate static String[] compileAcceptHeader(String[] acceptTypes)
public File getXsltFile()
public void setXsltFile(File xsltFile)
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 String[] getAcceptType()
public void setAcceptType(String[] acceptTypes)
public int getNextPartIndex()
public Map<String,java.nio.file.Path> getRetrievedInstances()
public WadoRSResponse getResponse()
public void setDumpHeaders(boolean b)
Copyright © 2017 dcm4che.org. All rights reserved.