View Javadoc

1   package org.rundeck.api.parser;
2   
3   import java.io.InputStream;
4   
5   /**
6    * Parse inputstream to some content
7    */
8   public interface ResponseParser<T> {
9   
10      /**
11       * Parse the given content
12       *
13       * @param response input
14       * @return any object holding the converted value
15       */
16      T parseResponse(InputStream response);
17  }