/** * Get the default resource configuration if one is not declared in the * web.xml. * <p> * This implementation returns an instance of {@link WebAppResourceConfig} * that scans in files and directories as declared by the * {@link ClasspathResourceConfig#PROPERTY_CLASSPATH} if present, otherwise * in the "WEB-INF/lib" and "WEB-INF/classes" directories. * <p> * An inheriting class may override this method to supply a different * default resource configuration implementation. * * @param props the properties to pass to the resource configuration. * @param servletConfig the servlet configuration. * @return the default resource configuration. * * @throws javax.servlet.ServletException in case there was an error while retrieving the default resource config * @deprecated methods should implement {@link #getDefaultResourceConfig(java.util.Map, com.sun.jersey.spi.container.servlet.WebConfig) }. */ @Deprecated protected ResourceConfig getDefaultResourceConfig(Map<String, Object> props, ServletConfig servletConfig) throws ServletException { return getDefaultResourceConfig(props, getWebConfig()); }
/** * Get the default resource configuration if one is not declared in the * web.xml. * <p> * This implementation returns an instance of {@link WebAppResourceConfig} * that scans in files and directories as declared by the * {@link ClasspathResourceConfig#PROPERTY_CLASSPATH} if present, otherwise * in the "WEB-INF/lib" and "WEB-INF/classes" directories. * <p> * An inheriting class may override this method to supply a different * default resource configuration implementation. * * @param props the properties to pass to the resource configuration. * @param servletConfig the servlet configuration. * @return the default resource configuration. * * @throws javax.servlet.ServletException in case there was an error while retrieving the default resource config * @deprecated methods should implement {@link #getDefaultResourceConfig(java.util.Map, com.sun.jersey.spi.container.servlet.WebConfig) }. */ @Deprecated protected ResourceConfig getDefaultResourceConfig(Map<String, Object> props, ServletConfig servletConfig) throws ServletException { return getDefaultResourceConfig(props, getWebConfig()); }
/** * Get the default resource configuration if one is not declared in the * web.xml. * <p> * This implementation returns an instance of {@link WebAppResourceConfig} * that scans in files and directories as declared by the * {@link ClasspathResourceConfig#PROPERTY_CLASSPATH} if present, otherwise * in the "WEB-INF/lib" and "WEB-INF/classes" directories. * <p> * An inheriting class may override this method to supply a different * default resource configuration implementation. * * @param props the properties to pass to the resource configuration. * @param servletConfig the servlet configuration. * @return the default resource configuration. * * @throws javax.servlet.ServletException in case there was an error while retrieving the default resource config * @deprecated methods should implement {@link #getDefaultResourceConfig(java.util.Map, com.sun.jersey.spi.container.servlet.WebConfig) }. */ @Deprecated protected ResourceConfig getDefaultResourceConfig(Map<String, Object> props, ServletConfig servletConfig) throws ServletException { return getDefaultResourceConfig(props, getWebConfig()); }