Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added isDefaultClientSet() method to FedoraRequest #2

Merged
merged 1 commit into from

2 participants

@dchandekstark

Hey Eddie,

This is following up on our recent email. I'm a git and github newbie, so please forgive any mistakes. I didn't write a unit test and haven't tested the code -- I can't build the fedora-client source in Eclipse due to errors which I won't get into here. In any case, this is obviously a pretty straightforward addition. The new method could be used also in execute(), but I thought it better to leave that up to you.

Thanks,
David

@eddies eddies merged commit 61f3863 into mediashelf:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 22, 2012
  1. Added isDefaultClientSet() method.

    unknown authored
This page is out of date. Refresh to see the latest.
View
9 fedora-client-core/src/main/java/com/yourmediashelf/fedora/client/request/FedoraRequest.java
@@ -64,6 +64,15 @@ public static void setDefaultClient(FedoraClient client) {
}
/**
+ * Return boolean indicating whether {@link #DEFAULT_CLIENT} has been set.
+ *
+ * @return boolean
+ */
+ public static boolean isDefaultClientSet() {
+ return (DEFAULT_CLIENT != null);
+ }
+
+ /**
* <p>Execute this request using the supplied FedoraClient instance.</p>
*
* @param fedora an instance of FedoraClient
Something went wrong with that request. Please try again.