File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
core/pactbroker/src/main/kotlin/au/com/dius/pact/core/pactbroker Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,11 @@ interface IHalClient {
63
63
*/
64
64
fun linkUrl (name : String ): String?
65
65
66
+ /* *
67
+ * Returns the current HAL document
68
+ */
69
+ fun currentDoc (): JsonValue .Object ?
70
+
66
71
/* *
67
72
* Calls the closure with a Map of attributes for all links associated with the link name
68
73
* @param linkName Name of the link to loop over
@@ -251,6 +256,8 @@ open class HalClient @JvmOverloads constructor(
251
256
252
257
override fun navigate (link : String ) = navigate(mapOf (), link)
253
258
259
+ override fun currentDoc () = pathInfo
260
+
254
261
override fun fetch (path : String ) = fetch(path, true )
255
262
256
263
override fun fetch (path : String , encodePath : Boolean ): Result <JsonValue .Object , Exception > {
You can’t perform that action at this time.
0 commit comments