mirror of https://github.com/shred/acme4j
Rename readResourceMap to readDirectory
parent
fb3f56921d
commit
fbadeb62bf
|
@ -228,7 +228,7 @@ public class Connection implements AutoCloseable {
|
|||
*
|
||||
* @return Map of {@link Resource} and the respective {@link URI} to invoke
|
||||
*/
|
||||
public Map<Resource, URI> readResourceMap() throws AcmeException {
|
||||
public Map<Resource, URI> readDirectory() throws AcmeException {
|
||||
EnumMap<Resource, URI> resourceMap = new EnumMap<>(Resource.class);
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
|
|
@ -64,7 +64,7 @@ public class GenericAcmeClient extends AbstractAcmeClient {
|
|||
if (directoryMap.isEmpty()) {
|
||||
try (Connection conn = connect()) {
|
||||
conn.sendRequest(directoryUri);
|
||||
directoryMap.putAll(conn.readResourceMap());
|
||||
directoryMap.putAll(conn.readDirectory());
|
||||
}
|
||||
}
|
||||
return directoryMap.get(resource);
|
||||
|
|
Loading…
Reference in New Issue