|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.purl.sword.client.ClientOptions
public class ClientOptions
List of options that are parsed from the command line.
| Field Summary | |
|---|---|
static String |
TYPE_MULTI_POST
Label for the multipost operation. |
static String |
TYPE_POST
Label for the post operation. |
static String |
TYPE_SERVICE
Label for the service operation. |
| Constructor Summary | |
|---|---|
ClientOptions()
|
|
| Method Summary | |
|---|---|
String |
getAccessType()
Get the access type. |
boolean |
getChecksumError()
Get the checksum error value. |
String |
getFilename()
Get the name of the file to post. |
String |
getFiletype()
Get the type of the file to post. |
String |
getFormatNamespace()
Get the format namespace value. |
String |
getHref()
Get the HREF of the service to access. |
Iterator<PostDestination> |
getMultiPost()
Get the list of post destinations. |
String |
getOnBehalfOf()
Get the onBehalfOf value. |
String |
getPassword()
Get the password. |
String |
getProxyHost()
Get the proxy host. |
int |
getProxyPort()
Get the proxy port. |
String |
getSlug()
Get the current slug header. |
String |
getUsername()
Get the username. |
boolean |
isGuiMode()
Determine if the tool is to be run in GUI mode. |
boolean |
isMd5()
Get the MD5 setting. |
boolean |
isNoCapture()
Determine if the noCapture option is set. |
boolean |
isNoOp()
Determine if the NoOp header should be sent. |
boolean |
isVerbose()
Determine if the verbose option is set. |
boolean |
parseOptions(String[] args)
Parse the list of options contained in the specified array. |
void |
setAccessType(String accessType)
Set the access type. |
void |
setChecksumError(boolean checksumError)
Set the checksum error value. |
void |
setFilename(String filename)
Set the name of the file to post. |
void |
setFiletype(String filetype)
Set the type of the file to post. |
void |
setFormatNamespace(String formatNamespace)
Set the format namespace value. |
void |
setGuiMode(boolean guiMode)
Set the tool to run in GUI mode. |
void |
setHref(String href)
Set the HREF of the service to access. |
void |
setMd5(boolean md5)
Set the MD5 setting. |
void |
setNoOp(boolean noOp)
Set the NoOp setting. |
void |
setOnBehalfOf(String onBehalfOf)
Set the onBehalf of Value. |
void |
setPassword(String password)
Set the password. |
void |
setProxyHost(String proxyHost)
Set the proxy host. |
void |
setProxyPort(int proxyPort)
Set the proxy port. |
void |
setSlug(String slug)
Set the text that is to be used for the slug header. |
void |
setUsername(String username)
Set the username. |
void |
setVerbose(boolean verbose)
Set the verbose option. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE_SERVICE
public static final String TYPE_POST
public static final String TYPE_MULTI_POST
| Constructor Detail |
|---|
public ClientOptions()
| Method Detail |
|---|
public boolean parseOptions(String[] args)
args - The array of options.
public String getAccessType()
null if the value is not set.public void setAccessType(String accessType)
accessType - The value, or null to clear the value.public String getProxyHost()
null if the value is not set.public void setProxyHost(String proxyHost)
proxyHost - The value, or null to clear the value.public int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort - The proxy port.public String getUsername()
null if the value is not set.public void setUsername(String username)
username - The value, or null to clear the value.public String getPassword()
null if the value is not set.public void setPassword(String password)
password - The value, or null to clear the value.public String getHref()
null if the value is not set.public void setHref(String href)
href - The value, or null to clear the value.public String getFilename()
null if the value is not set.public void setFilename(String filename)
filename - The value, or null to clear the value.public String getFiletype()
null if the value is not set.public void setFiletype(String filetype)
filetype - The value, or null to clear the value.public boolean isGuiMode()
public void setGuiMode(boolean guiMode)
guiMode - True if the tool is to run in gui mode.public boolean isMd5()
public void setMd5(boolean md5)
md5 - True if the tool should use MD5 for post operations.public boolean isNoOp()
public void setNoOp(boolean noOp)
noOp - True if the NoOp header should be used.public boolean isVerbose()
public void setVerbose(boolean verbose)
verbose - True if verbose should be set.public String getOnBehalfOf()
null to clear the value.public void setOnBehalfOf(String onBehalfOf)
onBehalfOf - The value, or null to clear the value.public String getFormatNamespace()
null if the value is not set.public void setFormatNamespace(String formatNamespace)
formatNamespace - The value, or null to clear the value.public boolean getChecksumError()
public void setChecksumError(boolean checksumError)
checksumError - True if the error should be introduced.public String getSlug()
null if the value is not set.public void setSlug(String slug)
slug - The value, or null to clear the value.public Iterator<PostDestination> getMultiPost()
public boolean isNoCapture()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||