congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FSMenuService.readURL
Code IndexAdd Tabnine to your IDE (free)

How to use
readURL
method
in
org.jbpm.form.builder.services.impl.fs.FSMenuService

Best Java code snippets using org.jbpm.form.builder.services.impl.fs.FSMenuService.readURL (Showing top 4 results out of 315)

origin: org.jbpm/jbpm-form-services

@Override
protected String readURL(URL url) throws FileNotFoundException, IOException {
  if (exceptionType != null) {
    if (exceptionType.equals(FileNotFoundException.class)) throw new FileNotFoundException(url.toExternalForm());
    if (exceptionType.equals(IOException.class)) throw new IOException(url.toExternalForm());
    throw new NullPointerException();
  }
  return super.readURL(url);
}
@Override
origin: org.jbpm/form-services

@Override
protected String readURL(URL url) throws FileNotFoundException, IOException {
  if (exceptionType != null) {
    if (exceptionType.equals(FileNotFoundException.class)) throw new FileNotFoundException(url.toExternalForm());
    if (exceptionType.equals(IOException.class)) throw new IOException(url.toExternalForm());
    throw new NullPointerException();
  }
  return super.readURL(url);
}
@Override
origin: org.jbpm/jbpm-form-services

@Override
public Map<String, List<MenuItemDescription>> listMenuItems() throws MenuServiceException {
  Map<String, List<MenuItemDescription>> retval = null;
  try {
    FormRepresentationDecoder decoder = FormEncodingFactory.getDecoder();
    URL url = asURL("/menuItems.json");
    String json = readURL(url);
    retval = decoder.decodeMenuItemsMap(json);
  } catch (FormEncodingException e) {
    throw new MenuServiceException("Problem parsing menu items json file", e);
  } catch (URISyntaxException e) {
    throw new MenuServiceException("Problem finding menu items json file", e);
  } catch (FileNotFoundException e) {
    throw new MenuServiceException("No menu items json file found", e);
  } catch (IOException e) {
    throw new MenuServiceException("Problem reading menu items json file", e);
  } catch (Exception e) {
    throw new MenuServiceException("Unexpected error", e);
  }
  return retval;
}
origin: org.jbpm/form-services

@Override
public Map<String, List<MenuItemDescription>> listMenuItems() throws MenuServiceException {
  Map<String, List<MenuItemDescription>> retval = null;
  try {
    FormRepresentationDecoder decoder = FormEncodingFactory.getDecoder();
    URL url = asURL("/menuItems.json");
    String json = readURL(url);
    retval = decoder.decodeMenuItemsMap(json);
  } catch (FormEncodingException e) {
    throw new MenuServiceException("Problem parsing menu items json file", e);
  } catch (URISyntaxException e) {
    throw new MenuServiceException("Problem finding menu items json file", e);
  } catch (FileNotFoundException e) {
    throw new MenuServiceException("No menu items json file found", e);
  } catch (IOException e) {
    throw new MenuServiceException("Problem reading menu items json file", e);
  } catch (Exception e) {
    throw new MenuServiceException("Unexpected error", e);
  }
  return retval;
}
org.jbpm.form.builder.services.impl.fsFSMenuServicereadURL

Popular methods of FSMenuService

  • asURL
  • createReader
  • listMenuItems
  • writeToURL
  • <init>
  • addToMap
  • getFormBuilderProperties
  • listOptions
  • listValidations
  • removeFromMap
  • saveMenuItem
  • writeMenuItems
  • saveMenuItem,
  • writeMenuItems

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now