Qizx fe-4.4p2 API

com.qizx.apps.restapi
Class RestAPIConnection

java.lang.Object
  extended by com.qizx.util.rest.RESTClient
      extended by com.qizx.apps.restapi.RestAPIConnection
All Implemented Interfaces:
RestAPI

public class RestAPIConnection
extends com.qizx.util.rest.RESTClient
implements RestAPI

HTTP client for the Qizx REST API.

Provides most of functionalities of Library, with a few restrictions and slightly different semantics.

This class is not thread-safe. As many instances as desired can be created.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.qizx.util.rest.RESTClient
com.qizx.util.rest.RESTClient.Get, com.qizx.util.rest.RESTClient.Post, com.qizx.util.rest.RESTClient.Put, com.qizx.util.rest.RESTClient.Request, com.qizx.util.rest.RESTClient.Response
 
Field Summary
 
Fields inherited from class com.qizx.util.rest.RESTClient
DEFAULT_CHAR_ENCODING, ERROR_TYPE, OPER, PATH
 
Fields inherited from interface com.qizx.apps.restapi.RestAPI
CONFIGURATION_FIELDS, COUNTING_ESTIMATE, COUNTING_EXACT, COUNTING_NONE, E_COUNT, EXPERT_LEVEL, FORMAT_HTML, FORMAT_ITEMS, FORMAT_XML, INFO_FIELDS, NAME, NODES_FIELDS, PROFILE, PROFILING, PROPERTY, RUNNING_QUERIES_FIELDS, STATS_FIELDS, T_COUNT, TASKS_FIELDS, TYPE_ATTR
 
Constructor Summary
RestAPIConnection(String URL)
          Creates a Qizx REST API client.
 
Method Summary
 void addProperty(String name, String type, String value)
          Adds a Property to a batch of setprop operations
 String backup(String path)
          Wraps the "backup" command.
 String cancelRunningQuery(String exprId)
          Cancels a currently executing XQuery.
 boolean changeConfiguration(Properties properties)
          Changes a set of configuration properties.
 String copy(String src, String dst)
          Copies a Document or Collection.
 String createCollection(String path, boolean createParents)
          Wraps the mkcol request.
 void createLibrary(String libraryName)
          Wraps the "mklib" command.
 boolean delete(String path)
          Deletes a Document or Collection given by its path.
 void deleteLibrary(String libraryName)
          Wraps the "dellib" command.
 ItemSequence eval(String query, String format)
          Sends an evaluates an XQuery script, returns the response as a sequence of XQuery Items.
 ItemSequence eval(String query, String format, String encoding, int maxTime, String counting, String mode, int itemCount, int firstItem)
          Sends an evaluates an XQuery script, returns the response as a page of XQuery Items.
 ItemSequence evalAsItems(String query, String mode, int itemCount, int firstItem)
          Sends an evaluates an XQuery script, returns the response as a page of XQuery Items.
 String finishProperties()
          Finishes a batch of setprop operations
 String[] finishPut()
          Called to finish a bulk load (after startPut and a series of addDocument)
 com.qizx.util.rest.RESTClient.Response get(String path)
          Gets the contents of a Document or of a Collection.
 com.qizx.util.rest.RESTClient.Response get(String path, int limit)
          Gets the contents of a Document or of a Collection.
 com.qizx.util.rest.RESTClient.Response get(String path, String options, int limit)
          Gets the contents of a Document or of a Collection.
 String getAcl(String path, boolean inherited)
          Returns the ACL information for a Library member of the current XML Library.
 LibraryMemberIterator getChildren(String collectionPath, int limit)
          Returns children of Collection: documents or collections as an iterator.
 String getClusterName()
          Returns
 com.qizx.apps.util.TabularData getClusterNodes()
          Returns
 com.qizx.apps.util.TabularData getConfiguration(boolean expert)
          Returns a table of configuration properties.
 Indexing getIndexing()
          Wraps the "getindexing" command.
 Map<String,com.qizx.apps.util.Property> getMemberProperties(String path, String[] propNames)
          Returns metadata properties of a Library Member (document or collection)
 LibraryMemberIterator getMembers(String path, int depth, String[] properties)
          Returns an iterator over XML Library members
 double getProgress(String id)
          Wraps the "progress" command.
 com.qizx.apps.util.TabularData getStats(String level)
          Returns a table of statistics from the server.
 String incrementalBackup(String path)
          Wraps the "incrbackup" command.
 Map<String,com.qizx.apps.util.Property> info()
          Returns a map of system properties describing the Qizx server.
 String[] listLibraries()
          Wraps the "listlib" command.
 com.qizx.apps.util.TabularData listMaintenanceTasks(int timeline)
          Gets a list of background tasks
 com.qizx.apps.util.TabularData listRunningQueries()
          Returns a table of queries currently executing in one of the XML Libraries managed by the server.
 String login()
          This request checks that the client can access the server.
 String move(String src, String dst)
          Wraps the move request.
 com.qizx.util.rest.RESTClient.Get newGet(String name, String path)
          Internal.
 com.qizx.util.rest.RESTClient.Post newPost(String name, String path)
          Internal.
 com.qizx.util.rest.RESTClient.Put newPut(String name, String path)
          Internal.
 String optimize()
          Wraps the "optimize" command.
 void putDocument(String path, File contents, String contentType)
          Adds a document to the current import operation.
 void putDocument(String path, String contents)
          Adds a document to the current import operation.
 LibraryMemberIterator queryProp(String path, String query, String[] properties)
          Looks for Library members matching a query on metadata properties.
 String quickOptimize(int timeHint, boolean blocking)
          Wraps the "quickoptimize" command.
 com.qizx.util.rest.RESTClient.Response rawEval(String query, String format, String encoding, int maxTime, String counting, String mode, int itemCount, int firstItem)
          Evaluation without parsing of the response (internal use).
 String reindex()
          Wraps the "reindex" command.
 String serverControl(String command)
          Wraps the "server" command.
 void setAcl(String data)
          Adds ACL rules to the current XML Library Wraps the "setacl" command.
 void setCredentials(String username, String password)
          Defines user credentials for Basic and Digest authentication schemes.
 void setIndexing(File spec)
          Wraps the "setindexing" command.
 void setIndexing(String spec)
          Wraps the "setindexing" command.
 void setLibraryName(String name)
          Sets the name of the current XML Library.
 void startPut()
          Starts an import of XML documents.
 void startPutNonXML()
          Starts an import of non-XML documents.
 void startSetProp(String path, String name, String type, String value)
          Starts a batch of setprop operations on a Library Member (document or collection)
 String[] streamingPut(InputStream data)
          Store wrapped XML documents.
 
Methods inherited from class com.qizx.util.rest.RESTClient
getBaseURL, newGet, newPost, newPut
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestAPIConnection

public RestAPIConnection(String URL)
                  throws MalformedURLException
Creates a Qizx REST API client.

Parameters:
URL - an URL pointing to the API Service of a Qizx Server.
Throws:
MalformedURLException
Method Detail

setLibraryName

public void setLibraryName(String name)
Sets the name of the current XML Library.

Can be left to null if the server manages only one XML Library.

Parameters:
name - name of an XML Library (database) managed by the server.

setCredentials

public void setCredentials(String username,
                           String password)
Description copied from class: com.qizx.util.rest.RESTClient
Defines user credentials for Basic and Digest authentication schemes.

Overrides:
setCredentials in class com.qizx.util.rest.RESTClient

login

public String login()
             throws com.qizx.util.rest.RESTException
This request checks that the client can access the server.

User credentials should be set before attempting any connection. See setCredentials(String, String).

Throws:
com.qizx.util.rest.RESTException

get

public com.qizx.util.rest.RESTClient.Response get(String path)
                                           throws com.qizx.util.rest.RESTException
Gets the contents of a Document or of a Collection.

Parameters:
path - database path of the Document or Collection.
limit - maximum number of members for collection; no limit if < 0
Returns:
a Response. By testing the content-type of the Response, the contents can be obtained as byte stream, char stream, String or parsed XML Node.
Throws:
com.qizx.util.rest.RESTException
See Also:
Response

get

public com.qizx.util.rest.RESTClient.Response get(String path,
                                                  int limit)
                                           throws com.qizx.util.rest.RESTException
Gets the contents of a Document or of a Collection.

Parameters:
path - database path of the Document or Collection.
limit - maximum number of members for collection; no limit if < 0
Returns:
a Response. By testing the content-type of the Response, the contents can be obtained as byte stream, char stream, String or parsed XML Node.
Throws:
com.qizx.util.rest.RESTException
See Also:
Response

get

public com.qizx.util.rest.RESTClient.Response get(String path,
                                                  String options,
                                                  int limit)
                                           throws com.qizx.util.rest.RESTException
Gets the contents of a Document or of a Collection.

Parameters:
path - database path of the Document or Collection.
options - serialization options for Documents: a comma or tab-separated list of options in the form option=value, for example method=XML, encoding=ISO8859-1. See XMLSerializer for options details.
limit - maximum number of members for collection; no limit if < 0
Returns:
a Response. By testing the content-type of the Response, the contents can be obtained as byte stream, char stream, String or parsed XML Node.
Throws:
com.qizx.util.rest.RESTException
See Also:
RESTClient.Response

eval

public ItemSequence eval(String query,
                         String format)
                  throws com.qizx.util.rest.RESTException,
                         EvaluationException
Sends an evaluates an XQuery script, returns the response as a sequence of XQuery Items.

Parameters:
query - an XQuery script.
format - a String with value "items", "XML" or "HTML".
Returns:
a sequence of Items.
Throws:
com.qizx.util.rest.RESTException
EvaluationException

evalAsItems

public ItemSequence evalAsItems(String query,
                                String mode,
                                int itemCount,
                                int firstItem)
                         throws com.qizx.util.rest.RESTException,
                                EvaluationException
Sends an evaluates an XQuery script, returns the response as a page of XQuery Items.

Parameters:
query - an XQuery script.
mode - null in normal execution, or "profile"
itemCount - desired number of items.
firstItem - the rank of the first desired item (first rank is 1).
Returns:
a sequence of Items.
Throws:
com.qizx.util.rest.RESTException
EvaluationException

eval

public ItemSequence eval(String query,
                         String format,
                         String encoding,
                         int maxTime,
                         String counting,
                         String mode,
                         int itemCount,
                         int firstItem)
                  throws com.qizx.util.rest.RESTException,
                         EvaluationException
Sends an evaluates an XQuery script, returns the response as a page of XQuery Items. Most general request.

Parameters:
query - an XQuery script.
format - a String with value "items", "XML" or "HTML".
encoding - encoding used for the response
maxTime - number of milliseconds the query is allowed to run. Ignored if <= 0.
counting - counting method (applicable to format "items" only): value can be:
  • "exact" (the default) for an exact count (can be costly to evaluate),
  • "estimated" in which case the count value is similar to the count returned by XQuery function x:count-estimate().
  • "none": no counting
mode - execution mode: null for normal execution, or "profile" for profiling
itemCount - desired number of items.
firstItem - the rank of the first desired item (first rank is 1).
Returns:
a sequence of Items.
Throws:
com.qizx.util.rest.RESTException
EvaluationException

rawEval

public com.qizx.util.rest.RESTClient.Response rawEval(String query,
                                                      String format,
                                                      String encoding,
                                                      int maxTime,
                                                      String counting,
                                                      String mode,
                                                      int itemCount,
                                                      int firstItem)
                                               throws com.qizx.util.rest.RESTException,
                                                      EvaluationException
Evaluation without parsing of the response (internal use).

Throws:
com.qizx.util.rest.RESTException
EvaluationException

startPut

public void startPut()
              throws com.qizx.util.rest.RESTException
Starts an import of XML documents.

A typical import snippet looks like:

 restCx.startPut();
 restCx.addDocument("/docs/path1", stringData);
 restCx.addDocument("/docs/path2", new File(myfile), null);
 String[] status = restCx.finishPut();
 

Throws:
com.qizx.util.rest.RESTException
See Also:
putDocument, finishPut()

startPutNonXML

public void startPutNonXML()
                    throws com.qizx.util.rest.RESTException
Starts an import of non-XML documents.

Throws:
com.qizx.util.rest.RESTException
See Also:
#putDocument #finishPut

putDocument

public void putDocument(String path,
                        File contents,
                        String contentType)
                 throws com.qizx.util.rest.RESTException
Adds a document to the current import operation.

Parameters:
path - database path of the document
contents - a well-formed XML document, if called after startPut, or any data if following startPutNonXML.
contentType - can be null or "text/xml" for XML data, or an appropriate Mime type for non-XML documents.
Throws:
com.qizx.util.rest.RESTException
See Also:
#startPutNonXML #finishPut

putDocument

public void putDocument(String path,
                        String contents)
                 throws com.qizx.util.rest.RESTException
Adds a document to the current import operation.

Parameters:
path - database path of the document
contents - a well-formed XML document as a String, if called after startPut, or any text data if following startPutNonXML.
Throws:
com.qizx.util.rest.RESTException
See Also:
#startPutNonXML

finishPut

public String[] finishPut()
                   throws com.qizx.util.rest.RESTException
Called to finish a bulk load (after startPut and a series of addDocument)

Returns:
a status String giving the number of documents in error
Throws:
com.qizx.util.rest.RESTException
See Also:
#startPutNonXML #putDocument

streamingPut

public String[] streamingPut(InputStream data)
                      throws com.qizx.util.rest.RESTException
Store wrapped XML documents.

Data is pulled from a stream: due to http-client library constraints, this cannot work in push mode.

The format is:

  
    ... contents ... 
    ... contents ... 
  
 

Parameters:
data - XML input stream
Returns:
a status String giving the number of documents in error
Throws:
com.qizx.util.rest.RESTException

createCollection

public String createCollection(String path,
                               boolean createParents)
                        throws com.qizx.util.rest.RESTException
Wraps the mkcol request.

Parameters:
path - database path of the collection
createParents - true if parent collection are to be created if they do not yet exist.
Returns:
the path of the new collection
Throws:
com.qizx.util.rest.RESTException

move

public String move(String src,
                   String dst)
            throws com.qizx.util.rest.RESTException
Wraps the move request.

Parameters:
src - path of a collection or document to be renamed
dst - target path of a collection or document
Returns:
target path
Throws:
com.qizx.util.rest.RESTException

copy

public String copy(String src,
                   String dst)
            throws com.qizx.util.rest.RESTException
Copies a Document or Collection.

Wraps the copy request.

Parameters:
src - path of a collection or document to be copied
dst - target path of a collection or document
Returns:
target path
Throws:
com.qizx.util.rest.RESTException

delete

public boolean delete(String path)
               throws com.qizx.util.rest.RESTException
Deletes a Document or Collection given by its path.

Parameters:
path - path of a collection or document to be deleted
Returns:
true if actually deleted
Throws:
com.qizx.util.rest.RESTException

getChildren

public LibraryMemberIterator getChildren(String collectionPath,
                                         int limit)
                                  throws com.qizx.util.rest.RESTException
Returns children of Collection: documents or collections as an iterator.

Parameters:
collectionPath - parent collection
Returns:
an iterator
Throws:
com.qizx.util.rest.RESTException

getMembers

public LibraryMemberIterator getMembers(String path,
                                        int depth,
                                        String[] properties)
                                 throws com.qizx.util.rest.RESTException,
                                        EvaluationException
Returns an iterator over XML Library members

Parameters:
path - root path (a Collection if depth > 0)
depth - if 0, return only the properties of the root member, if dept > 0 then the root path must be that of a Collection, and the method returns members within that depth (depth=1 : children, depth=2: grand-children etc)
properties - names of properties to return. By default, all properties are returned. The names are separated by commas or whitespace.
Returns:
an iterator on members
Throws:
com.qizx.util.rest.RESTException
EvaluationException

getMemberProperties

public Map<String,com.qizx.apps.util.Property> getMemberProperties(String path,
                                                                   String[] propNames)
                                                            throws com.qizx.util.rest.RESTException
Returns metadata properties of a Library Member (document or collection)

Parameters:
path - path of the Library Member
propNames - selected property names. If null or empty, all properties are returned.
Returns:
a map of name to Property descriptors.
Throws:
com.qizx.util.rest.RESTException

startSetProp

public void startSetProp(String path,
                         String name,
                         String type,
                         String value)
                  throws com.qizx.util.rest.RESTException
Starts a batch of setprop operations on a Library Member (document or collection)

Parameters:
path - path of the Library Member
name - property name
type - property type
value - property value, matching the type
Throws:
com.qizx.util.rest.RESTException

addProperty

public void addProperty(String name,
                        String type,
                        String value)
                 throws com.qizx.util.rest.RESTException
Adds a Property to a batch of setprop operations

Parameters:
name - property name
type - property type
value - property value, matching the type
Throws:
com.qizx.util.rest.RESTException

finishProperties

public String finishProperties()
                        throws com.qizx.util.rest.RESTException
Finishes a batch of setprop operations

Throws:
com.qizx.util.rest.RESTException

queryProp

public LibraryMemberIterator queryProp(String path,
                                       String query,
                                       String[] properties)
                                throws com.qizx.util.rest.RESTException,
                                       EvaluationException
Looks for Library members matching a query on metadata properties.

Parameters:
path - root collection defining a search domain (null for the whole database)
query - a query on metadata properties.
properties - names of desired properties for each returned member (If null or empty, all properties are returned).
Returns:
an iterator
Throws:
com.qizx.util.rest.RESTException
EvaluationException

info

public Map<String,com.qizx.apps.util.Property> info()
                                             throws com.qizx.util.rest.RESTException,
                                                    DataModelException
Returns a map of system properties describing the Qizx server.

Throws:
com.qizx.util.rest.RESTException
DataModelException

listLibraries

public String[] listLibraries()
                       throws com.qizx.util.rest.RESTException
Wraps the "listlib" command.

Returns:
a list of Library names
Throws:
com.qizx.util.rest.RESTException

serverControl

public String serverControl(String command)
                     throws com.qizx.util.rest.RESTException
Wraps the "server" command.

Parameters:
command -
Returns:
a String status
Throws:
com.qizx.util.rest.RESTException

getClusterName

public String getClusterName()
                      throws com.qizx.util.rest.RESTException
Returns

Returns:
a table of Cluster servers/nodes.
Throws:
com.qizx.util.rest.RESTException

getClusterNodes

public com.qizx.apps.util.TabularData getClusterNodes()
                                               throws com.qizx.util.rest.RESTException
Returns

Returns:
a table of Cluster servers/nodes.
Throws:
com.qizx.util.rest.RESTException

createLibrary

public void createLibrary(String libraryName)
                   throws com.qizx.util.rest.RESTException
Wraps the "mklib" command. Applied on the current XML Library.

Throws:
com.qizx.util.rest.RESTException

deleteLibrary

public void deleteLibrary(String libraryName)
                   throws com.qizx.util.rest.RESTException
Wraps the "dellib" command. Applied on the current XML Library.

Parameters:
libraryName - name of an existing XML Library
Throws:
com.qizx.util.rest.RESTException

getIndexing

public Indexing getIndexing()
                     throws com.qizx.util.rest.RESTException
Wraps the "getindexing" command. Applied on the current XML Library.

Returns:
a specification of Indexing options for the Library
Throws:
com.qizx.util.rest.RESTException

setIndexing

public void setIndexing(File spec)
                 throws com.qizx.util.rest.RESTException
Wraps the "setindexing" command. Applied on the current XML Library.

Parameters:
spec - a specification of Indexing options for the Library, as an XML file.
Throws:
com.qizx.util.rest.RESTException

setIndexing

public void setIndexing(String spec)
                 throws com.qizx.util.rest.RESTException
Wraps the "setindexing" command. Applied on the current XML Library.

Parameters:
spec - spec a specification of Indexing options for the Library, as an XML fragment
Throws:
com.qizx.util.rest.RESTException

reindex

public String reindex()
               throws com.qizx.util.rest.RESTException
Wraps the "reindex" command. Applied on the current XML Library.

Returns:
a Progress Identifier (for the getProgress method)
Throws:
com.qizx.util.rest.RESTException

optimize

public String optimize()
                throws com.qizx.util.rest.RESTException
Wraps the "optimize" command. Applied on the current XML Library.

Returns:
a Progress Identifier (for the getProgress method)
Throws:
com.qizx.util.rest.RESTException

quickOptimize

public String quickOptimize(int timeHint,
                            boolean blocking)
                     throws com.qizx.util.rest.RESTException
Wraps the "quickoptimize" command. Applied on the current XML Library.

Parameters:
timeHint - maximum desired time to spend optimizing, in seconds
blocking - true if method waits for a result
Returns:
a Progress Identifier (for the getProgress method)
Throws:
com.qizx.util.rest.RESTException

backup

public String backup(String path)
              throws com.qizx.util.rest.RESTException
Wraps the "backup" command. Applied on the current XML Library.

Parameters:
path - path of a Directory on the server host, target of the backup
Returns:
a Progress Identifier (for the getProgress method)
Throws:
com.qizx.util.rest.RESTException

incrementalBackup

public String incrementalBackup(String path)
                         throws com.qizx.util.rest.RESTException
Wraps the "incrbackup" command. Applied on the current XML Library.

Parameters:
path - path of a Directory on the server host, target of the backup
Returns:
a Progress Identifier (for the getProgress method)
Throws:
com.qizx.util.rest.RESTException

getProgress

public double getProgress(String id)
                   throws com.qizx.util.rest.RESTException
Wraps the "progress" command.

Parameters:
id - an identifier returned by backup reindex etc
Returns:
fraction of the job achieved
Throws:
com.qizx.util.rest.RESTException

getAcl

public String getAcl(String path,
                     boolean inherited)
              throws com.qizx.util.rest.RESTException
Returns the ACL information for a Library member of the current XML Library. Wraps the "getacl" command.

Parameters:
path -
inherited -
Throws:
IOException
com.qizx.util.rest.RESTException

setAcl

public void setAcl(String data)
            throws com.qizx.util.rest.RESTException
Adds ACL rules to the current XML Library Wraps the "setacl" command.

Parameters:
data -
Throws:
com.qizx.util.rest.RESTException

getStats

public com.qizx.apps.util.TabularData getStats(String level)
                                        throws com.qizx.util.rest.RESTException
Returns a table of statistics from the server.

Parameters:
level - "admin" or "expert"
Returns:
a table with columns "Id", "Type", "Value", "Family". See the REST API documentation for more details.
Throws:
com.qizx.util.rest.RESTException

getConfiguration

public com.qizx.apps.util.TabularData getConfiguration(boolean expert)
                                                throws com.qizx.util.rest.RESTException
Returns a table of configuration properties.

Parameters:
expert - false for basic/admin configuration, true for most detailed configuration
Returns:
a table with columns "Name", "Category", "Level", "Type", "Value", "DefaultValue", "Description". See the REST API documentation for more details.
Throws:
com.qizx.util.rest.RESTException

changeConfiguration

public boolean changeConfiguration(Properties properties)
                            throws com.qizx.util.rest.RESTException
Changes a set of configuration properties.

Parameters:
properties - a map of properties with their value
Returns:
true if at least one property was actually changed. Unknown properties are ignored.
Throws:
com.qizx.util.rest.RESTException

listRunningQueries

public com.qizx.apps.util.TabularData listRunningQueries()
                                                  throws com.qizx.util.rest.RESTException
Returns a table of queries currently executing in one of the XML Libraries managed by the server.

Returns:
a table with columns "Id", "User", "Elapsed Time", "Source". See the REST API documentation for more details.
Throws:
com.qizx.util.rest.RESTException

cancelRunningQuery

public String cancelRunningQuery(String exprId)
                          throws com.qizx.util.rest.RESTException
Cancels a currently executing XQuery.

Parameters:
exprId - unique identifier of the query, as returned by listRunningQueries()
Returns:
a String containing "OK" if the query was found and cancelled, "idle" : if the query was found but not executing, and "unknown" if the query was not found.
Throws:
com.qizx.util.rest.RESTException

listMaintenanceTasks

public com.qizx.apps.util.TabularData listMaintenanceTasks(int timeline)
                                                    throws com.qizx.util.rest.RESTException
Gets a list of background tasks

Parameters:
timeline - if 0, return only currently running tasks, otherwise return tasks that started within this number of hours in the past. For example timeline=24 returns all tasks that started in the past 24 hours.
Returns:
a table with columns "Type", "Database", "Start Time", "Finish Time", "Duration", "Progress"
Throws:
com.qizx.util.rest.RESTException

newGet

public com.qizx.util.rest.RESTClient.Get newGet(String name,
                                                String path)
Description copied from class: com.qizx.util.rest.RESTClient
Internal.

Overrides:
newGet in class com.qizx.util.rest.RESTClient

newPut

public com.qizx.util.rest.RESTClient.Put newPut(String name,
                                                String path)
Description copied from class: com.qizx.util.rest.RESTClient
Internal.

Overrides:
newPut in class com.qizx.util.rest.RESTClient

newPost

public com.qizx.util.rest.RESTClient.Post newPost(String name,
                                                  String path)
Description copied from class: com.qizx.util.rest.RESTClient
Internal.

Overrides:
newPost in class com.qizx.util.rest.RESTClient

© 2010 Axyana Software