Tabnine Logo
FilterDef.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
org.apache.tomcat.util.descriptor.web.FilterDef

Best Java code snippets using org.apache.tomcat.util.descriptor.web.FilterDef.toString (Showing top 6 results out of 315)

origin: org.apache.tomcat/tomcat-catalina

/**
 * Return the filter definition for the specified filter name, if any;
 * otherwise return <code>null</code>.
 *
 * @param name Filter name to look up
 * @return a string representation of the filter definition
 * @throws MBeanException propagated from the managed resource access
 */
public String findFilterDef(String name) throws MBeanException {
  Context context = doGetManagedResource();
  FilterDef filterDef = context.findFilterDef(name);
  return filterDef.toString();
}
origin: org.apache.tomcat/tomcat-catalina

/**
 * Return the set of defined filters for this Context.
 * @return a string array with a representation of all
 *  the filter definitions
 * @throws MBeanException propagated from the managed resource access
 */
public String[] findFilterDefs() throws MBeanException {
  Context context = doGetManagedResource();
  FilterDef[] filterDefs = context.findFilterDefs();
  String[] stringFilters = new String[filterDefs.length];
  for (int counter = 0; counter < filterDefs.length; counter++) {
    stringFilters[counter] = filterDefs[counter].toString();
  }
  return stringFilters;
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Return the filter definition for the specified filter name, if any;
 * otherwise return <code>null</code>.
 *
 * @param name Filter name to look up
 * @return a string representation of the filter definition
 * @throws MBeanException propagated from the managed resource access
 */
public String findFilterDef(String name) throws MBeanException {
  Context context = doGetManagedResource();
  FilterDef filterDef = context.findFilterDef(name);
  return filterDef.toString();
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Return the set of defined filters for this Context.
 * @return a string array with a representation of all
 *  the filter definitions
 * @throws MBeanException propagated from the managed resource access
 */
public String[] findFilterDefs() throws MBeanException {
  Context context = doGetManagedResource();
  FilterDef[] filterDefs = context.findFilterDefs();
  String[] stringFilters = new String[filterDefs.length];
  for (int counter = 0; counter < filterDefs.length; counter++) {
    stringFilters[counter] = filterDefs[counter].toString();
  }
  return stringFilters;
}
origin: codefollower/Tomcat-Research

/**
 * Return the filter definition for the specified filter name, if any;
 * otherwise return <code>null</code>.
 *
 * @param name Filter name to look up
 */
public String findFilterDef(String name) throws MBeanException {
  Context context;
  try {
    context = (Context)getManagedResource();
  } catch (InstanceNotFoundException e) {
    throw new MBeanException(e);
  } catch (RuntimeOperationsException e) {
    throw new MBeanException(e);
  } catch (InvalidTargetObjectTypeException e) {
    throw new MBeanException(e);
  }
  FilterDef filterDef = context.findFilterDef(name);
  return filterDef.toString();
}
origin: codefollower/Tomcat-Research

/**
 * Return the set of defined filters for this Context.
 */
public String[] findFilterDefs() throws MBeanException {
  Context context;
  try {
    context = (Context)getManagedResource();
  } catch (InstanceNotFoundException e) {
    throw new MBeanException(e);
  } catch (RuntimeOperationsException e) {
    throw new MBeanException(e);
  } catch (InvalidTargetObjectTypeException e) {
    throw new MBeanException(e);
  }
  FilterDef[] filterDefs = context.findFilterDefs();
  String[] stringFilters = new String[filterDefs.length];
  for(int counter=0; counter < filterDefs.length; counter++){
    stringFilters[counter]=filterDefs[counter].toString();
  }
  return stringFilters;
}
org.apache.tomcat.util.descriptor.webFilterDeftoString

Javadoc

Render a String representation of this object.

Popular methods of FilterDef

  • <init>
  • setFilterName
  • setFilterClass
  • getFilterName
  • setAsyncSupported
  • addInitParameter
    Add an initialization parameter to the set of parameters associated with this filter.
  • getDescription
  • getFilterClass
  • setDisplayName
  • setFilter
  • getParameterMap
  • setDescription
  • getParameterMap,
  • setDescription,
  • getAsyncSupported,
  • getDisplayName,
  • getFilter,
  • getLargeIcon,
  • getSmallIcon,
  • setLargeIcon,
  • setSmallIcon

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JLabel (javax.swing)
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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