View Javadoc

1   package org.rundeck.api.parser;
2   
3   import org.dom4j.Node;
4   import org.rundeck.api.domain.BaseKeyResource;
5   import org.rundeck.api.domain.KeyResource;
6   
7   /**
8    * SSHKeyResourceParser is ...
9    *
10   * @author Greg Schueler <greg@simplifyops.com>
11   * @since 2014-04-04
12   */
13  public class SSHKeyResourceParser extends BaseXpathParser<KeyResource> implements XmlNodeParser<KeyResource> {
14      public SSHKeyResourceParser() {
15      }
16  
17      public SSHKeyResourceParser(String xpath) {
18          super(xpath);
19      }
20  
21      @Override
22      public KeyResource parse(Node node) {
23          return BaseKeyResource.from(new StorageResourceParser().parse(node));
24      }
25  }