ServletMapping.<init>
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.apache.openejb.jee.ServletMapping.<init>(Showing top 6 results out of 315)

  • Common ways to obtain ServletMapping
private void myMethod () {
ServletMapping s =
  • new ServletMapping()
  • Smart code suggestions by Codota
}
origin: org.apache.openejb/openejb-jee

public WebApp addServletMapping(final String servletName, final String mapping) {
  for (final ServletMapping s : getServletMapping()) {
    if (servletName.equals(s.getServletName())) {
      s.getUrlPattern().add(mapping);
      return this;
    }
  }
  final ServletMapping sm = new ServletMapping();
  sm.setServletName(servletName);
  sm.getUrlPattern().add(mapping);
  getServletMapping().add(sm);
  return this;
}
origin: org.apache.openejb/openejb-jee

public WebApp addServlet(final String name, final String clazz, final String... mappings) {
  final Servlet servletToAdd = new Servlet();
  servletToAdd.setServletName(name);
  servletToAdd.setServletClass(clazz);
  if (mappings != null && mappings.length > 0) {
    final ServletMapping sm = new ServletMapping();
    sm.setServletName(name);
    for (final String mapping : mappings) {
      if (servletMapping == null) {
        servletMapping = new ArrayList<ServletMapping>();
      }
      sm.getUrlPattern().add(mapping);
    }
    servletMapping.add(sm);
  }
  getServlet().add(servletToAdd);
  return this;
}
origin: org.apache.openejb/openejb-core

final String serviceName = JaxWsUtils.getServiceName(clazz);
if (servletMapping == null) {
  servletMapping = new ServletMapping();
  servletMapping.setServletName(servlet.getServletName());
origin: org.apache.tomee/openejb-jee

public WebApp addServletMapping(final String servletName, final String mapping) {
  for (final ServletMapping s : getServletMapping()) {
    if (servletName.equals(s.getServletName())) {
      s.getUrlPattern().add(mapping);
      return this;
    }
  }
  final ServletMapping sm = new ServletMapping();
  sm.setServletName(servletName);
  sm.getUrlPattern().add(mapping);
  getServletMapping().add(sm);
  return this;
}
origin: org.apache.tomee/openejb-jee

public WebApp addServlet(final String name, final String clazz, final String... mappings) {
  final Servlet servletToAdd = new Servlet();
  servletToAdd.setServletName(name);
  servletToAdd.setServletClass(clazz);
  if (mappings != null && mappings.length > 0) {
    final ServletMapping sm = new ServletMapping();
    sm.setServletName(name);
    for (final String mapping : mappings) {
      if (servletMapping == null) {
        servletMapping = new ArrayList<ServletMapping>();
      }
      sm.getUrlPattern().add(mapping);
    }
    servletMapping.add(sm);
  }
  getServlet().add(servletToAdd);
  return this;
}
origin: org.apache.tomee/openejb-core

final String serviceName = JaxWsUtils.getServiceName(clazz);
if (servletMapping == null) {
  servletMapping = new ServletMapping();
  servletMapping.setServletName(servlet.getServletName());
org.apache.openejb.jeeServletMapping<init>

Popular methods of ServletMapping

  • getServletName
  • getUrlPattern
  • setServletName

Popular classes and methods

  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • 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
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • ImageIO (javax.imageio)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)