src/main/java/de/uapcore/lightpit/Functions.java

changeset 33
fd8c40ff78c3
parent 29
27a0fdd7bca7
child 34
824d4042c857
equal deleted inserted replaced
32:63a31871189e 33:fd8c40ff78c3
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 * 27 *
28 */ 28 */
29 package de.uapcore.lightpit; 29 package de.uapcore.lightpit;
30 30
31 import java.util.Optional; 31 import org.slf4j.Logger;
32 import org.slf4j.LoggerFactory;
33
32 import javax.servlet.ServletContext; 34 import javax.servlet.ServletContext;
33 import javax.servlet.http.HttpServletRequest; 35 import javax.servlet.http.HttpServletRequest;
34 import org.slf4j.Logger; 36 import java.util.Optional;
35 import org.slf4j.LoggerFactory;
36 37
37 /** 38 /**
38 * Contains common static functions. 39 * Contains common static functions.
39 */ 40 */
40 public final class Functions { 41 public final class Functions {
62 } 63 }
63 64
64 public static String fqn(String base, String name) { 65 public static String fqn(String base, String name) {
65 return base+"."+name; 66 return base+"."+name;
66 } 67 }
67 68
68 public static String fqn(Class clazz, String name) { 69 public static String fqn(Class<?> clazz, String name) {
69 return fqn(clazz.getName(), name); 70 return fqn(clazz.getName(), name);
70 } 71 }
71 72
72 public static String fullPath(LightPITModule module, RequestMapping mapping) { 73 public static String fullPath(LightPITModule module, RequestMapping mapping) {
73 StringBuilder sb = new StringBuilder(); 74 StringBuilder sb = new StringBuilder();

mercurial