Skip to content

Commit d2965a0

Browse files
author
ehennum
committed
Bug:19086 JavaDoc completion
git-svn-id: svn+ssh://svn.marklogic.com/project/engsvn/client-api/java/trunk@113040 62cac252-8da6-4816-9e9d-6dc37b19578c
1 parent f1b81a3 commit d2965a0

File tree

5 files changed

+53
-4
lines changed

5 files changed

+53
-4
lines changed

src/main/java/com/marklogic/client/MarkLogicBindingException.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
import org.slf4j.Logger;
1919
import org.slf4j.LoggerFactory;
2020

21+
/**
22+
* A Binding Exception indicates a problem converting between a Java object
23+
* and XML representation of the data. The exception may indicate an internal
24+
* error. Please contact MarkLogic support.
25+
*/
2126
@SuppressWarnings("serial")
2227
public class MarkLogicBindingException extends RuntimeException {
2328

src/main/java/com/marklogic/client/MarkLogicIOException.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
*/
1616
package com.marklogic.client;
1717

18-
1918
/**
20-
* RuntimeException thrown by the Java Client API when a code block internally throws java.lang.IOException.
19+
* An IO Exception indicates that there was a problem on input or output (similar
20+
* to a java.lang.IOException but defined as a runtime rather than checked
21+
* exception).
2122
*/
2223
@SuppressWarnings("serial")
2324
public class MarkLogicIOException extends RuntimeException {

src/main/java/com/marklogic/client/UnauthorizedUserException.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
*/
1616
package com.marklogic.client;
1717

18+
/**
19+
* An Unauthorized User Exception indicates the user is
20+
* not recognized by the server.
21+
*
22+
*/
1823
@SuppressWarnings("serial")
1924
public class UnauthorizedUserException extends RuntimeException {
2025
public UnauthorizedUserException() {

src/main/java/com/marklogic/client/admin/NamespacesManager.java

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,47 @@
2828
* To use NamespacesManager, an application must authenticate as rest-admin.
2929
*/
3030
public interface NamespacesManager {
31+
/**
32+
* Returns the namespace URI bound to the specified prefix on the server.
33+
* @param prefix the prefix for the binding
34+
* @return the namespace URI
35+
*/
3136
public String readPrefix(String prefix) throws ForbiddenUserException, FailedRequestException;
37+
/**
38+
* Reads all of the namespace bindings from the server.
39+
* @return a namespace context with the bindings
40+
*/
3241
public NamespaceContext readAll() throws ForbiddenUserException, FailedRequestException;
42+
/**
43+
* Creates a namespace binding on the server.
44+
* @param prefix the prefix bound to the URI
45+
* @param namespaceURI the URI bound to the prefix
46+
*/
3347
public void addPrefix(String prefix, String namespaceURI) throws ForbiddenUserException, FailedRequestException;
48+
/**
49+
* Writes a namespace binding on the server.
50+
* @param prefix the prefix bound to the URI
51+
* @param namespaceURI the URI bound to the prefix
52+
*/
3453
public void updatePrefix(String prefix, String namespaceURI) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException;
54+
/**
55+
* Deletes a namespace binding on the server.
56+
* @param prefix the prefix bound to the URI
57+
*/
3558
public void deletePrefix(String prefix) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException;
59+
/**
60+
* Deletes all namespace bindings on the server.
61+
*/
3662
public void deleteAll() throws ForbiddenUserException, FailedRequestException;
63+
/**
64+
* Starts debugging client requests. You can suspend and resume debugging output
65+
* using the methods of the logger.
66+
*
67+
* @param logger the logger that receives debugging output
68+
*/
3769
public void startLogging(RequestLogger logger);
70+
/**
71+
* Stops debugging client requests.
72+
*/
3873
public void stopLogging();
3974
}

src/main/java/com/marklogic/client/io/BaseHandle.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
* Write handles send content to the server and must implement the sendContent() method.
2929
* A handle can support both read and write operations.
3030
*
31-
* @param <R>
32-
* @param <W>
31+
* @param <R> a read handle or OperationNotSupported in the com.marklogic.client.io.marker package
32+
* @param <W> a write handle or OperationNotSupported in the com.marklogic.client.io.marker package
3333
*/
3434
public abstract class BaseHandle<R,W>
3535
extends HandleImplementation<R,W>
@@ -38,6 +38,9 @@ public abstract class BaseHandle<R,W>
3838
private String mimetype;
3939
private long length = UNKNOWN_LENGTH;
4040

41+
/**
42+
* Zero-argument constructor.
43+
*/
4144
public BaseHandle() {
4245
super();
4346
}

0 commit comments

Comments
 (0)