Skip to content

Commit b0969de

Browse files
author
ehennum
committed
direct getContentClass() for extra handles #1250
1 parent a770a85 commit b0969de

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

marklogic-client-api/src/main/java/com/marklogic/client/extra/dom4j/DOM4JHandle.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ public DOM4JHandle with(Document content) {
187187
return this;
188188
}
189189

190+
@Override
191+
public Class<Document> getContentClass() {
192+
return Document.class;
193+
}
194+
190195
/**
191196
* Restricts the format to XML.
192197
*/

marklogic-client-api/src/main/java/com/marklogic/client/extra/gson/GSONHandle.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ public GSONHandle with(JsonElement content) {
127127
return this;
128128
}
129129

130+
@Override
131+
public Class<JsonElement> getContentClass() {
132+
return JsonElement.class;
133+
}
134+
130135
/**
131136
* Restricts the format to JSON.
132137
*/

marklogic-client-api/src/main/java/com/marklogic/client/extra/jdom/JDOMHandle.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ public JDOMHandle with(Document content) {
180180
return this;
181181
}
182182

183+
@Override
184+
public Class<Document> getContentClass() {
185+
return Document.class;
186+
}
187+
183188
/**
184189
* Restricts the format to XML.
185190
*/

0 commit comments

Comments
 (0)