Class PVsMatchingParameter

java.lang.Object
org.epics.archiverappliance.mgmt.bpl.PVsMatchingParameter

public class PVsMatchingParameter extends Object
Small utility class for listing PVs that match a parameter
Author:
mshankar
  • Constructor Details

    • PVsMatchingParameter

      public PVsMatchingParameter()
  • Method Details

    • getMatchingPVs

      public static LinkedList<String> getMatchingPVs(javax.servlet.http.HttpServletRequest req, ConfigService configService, int defaultLimit)
    • getMatchingPVs

      public static LinkedList<String> getMatchingPVs(javax.servlet.http.HttpServletRequest req, ConfigService configService, boolean includePVSThatDontExist, int defaultLimit)
      Given a BPL request, get all the matching PVs
      Parameters:
      req - HttpServletRequest
      configService - ConfigService
      includePVSThatDontExist - Some BPL requires us to include PVs that don't exist so that they can give explicit status
      defaultLimit - The default value for the limit if the limit is not specified in the request.
      Returns:
      LinkedList Matching PVs
    • getRequestParameters

      public static Map<String,String> getRequestParameters(javax.servlet.http.HttpServletRequest req)
    • getMatchingPVs

      public static LinkedList<String> getMatchingPVs(List<String> pvs, String regex, int limit, ConfigService configService, boolean includePVSThatDontExist)
      Given a BPL request, get all the matching PVs
      Parameters:
      pvs - List of pvs and regexes
      regex - Single regex search
      limit - Limit of query on pvs
      configService - ConfigService
      includePVSThatDontExist - Some BPL requires us to include PVs that don't exist so that they can give explicit status
      Returns:
      LinkedList Matching PVs
    • getLimit

      public static int getLimit(int defaultLimit, Map<String,String> requestParameters)
    • getPVNamesFromPostBody

      public static LinkedList<String> getPVNamesFromPostBody(javax.servlet.http.HttpServletRequest req) throws IOException
      Throws:
      IOException