framework/webapp/src/org/ofbiz/webapp/control/RequestLinkUtil.java
RequestLinkUtil
has 52 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public final class RequestLinkUtil {
private static final Debug.OfbizLogger module = Debug.getOfbizLogger(java.lang.invoke.MethodHandles.lookup().lookupClass());
private static final Pattern jsessionIdPat = Pattern.compile("((;jsessionid=)([^\\?#]*))");
Method makeLinkAuto
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String makeLinkAuto(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response,
String uri, Boolean absPath, Boolean interWebapp, String webSiteId, Boolean controller, Boolean fullPath, Boolean secure, Boolean encode) {
Method buildLinkHostPartAndEncodeSafe
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String buildLinkHostPartAndEncodeSafe(Delegator delegator, Locale locale, FullWebappInfo targetWebappInfo, String url,
Boolean fullPath, Boolean secure, Boolean encode, boolean includeWebappPathPrefix, FullWebappInfo currentWebappInfo,
Map<String, Object> context) {
Method makeLinkAuto
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String makeLinkAuto(HttpServletRequest request, HttpServletResponse response,
String uri, Boolean absPath, Boolean interWebapp, String webSiteId, Boolean controller, Boolean fullPath, Boolean secure, Boolean encode) {
Method buildLinkHostPartAndEncode
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String buildLinkHostPartAndEncode(Delegator delegator, Locale locale, FullWebappInfo targetWebappInfo, String url,
Boolean fullPath, Boolean secure, Boolean encode, boolean includeWebappPathPrefix, FullWebappInfo currentWebappInfo,
Map<String, Object> context) {
Method buildLinkHostPartAndEncodeSafe
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String buildLinkHostPartAndEncodeSafe(HttpServletRequest request, HttpServletResponse response, Locale locale, FullWebappInfo targetWebappInfo, String url,
Boolean fullPath, Boolean secure, Boolean encode, boolean includeWebappPathPrefix) {
Method buildLinkHostPartAndEncode
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String buildLinkHostPartAndEncode(HttpServletRequest request, HttpServletResponse response, Locale locale, FullWebappInfo targetWebappInfo, String url,
Boolean fullPath, Boolean secure, Boolean encode, boolean includeWebappPathPrefix) throws IllegalArgumentException {
Method doLinkURLEncode
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String doLinkURLEncode(HttpServletRequest request, HttpServletResponse response, StringBuilder newURL, boolean interWebapp,
FullWebappInfo targetWebappInfo, FullWebappInfo currentWebappInfo, boolean didFullStandard, boolean didFullSecure) {
Method rebuildOriginalRequestURL
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String rebuildOriginalRequestURL(HttpServletRequest request, HttpServletResponse response, Locale locale,
Boolean secure, Boolean staticHost, boolean includeWebappPathPrefix, boolean useQueryString, boolean handleErrors) throws IllegalStateException {
Method doLinkURLEncode
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String doLinkURLEncode(Delegator delegator, Locale locale, StringBuilder newURL, FullWebappInfo targetWebappInfo, FullWebappInfo currentWebappInfo,
boolean didFullStandard, boolean didFullSecure, Map<String, Object> context) {
Method buildLinkHostPartAndEncode
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String buildLinkHostPartAndEncode(HttpServletRequest request, HttpServletResponse response, FullWebappInfo targetWebappInfo, String url,
Boolean fullPath, Boolean secure, Boolean encode) throws WebAppConfigurationException, IOException {
Method buildLinkHostPartAndEncode
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String buildLinkHostPartAndEncode(Delegator delegator, String webSiteId, String url,
Boolean fullPath, Boolean secure, Boolean encode, Map<String, Object> context) {
Method makeLinkAuto
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String makeLinkAuto(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response,
String uri, Boolean fullPath, Boolean secure, Boolean encode) {
Method checkFullSecureOrStandard
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static Boolean checkFullSecureOrStandard(Delegator delegator, String webSiteId,
Boolean interWebapp, Boolean fullPath, Boolean secure, Map<String, Object> context) {
Method makeLinkAuto
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String makeLinkAuto(HttpServletRequest request, HttpServletResponse response,
String uri, Boolean fullPath, Boolean secure, Boolean encode) {
Method checkFullSecureOrStandard
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static Boolean checkFullSecureOrStandard(Delegator delegator, WebSiteProperties webSiteProps,
Boolean interWebapp, Boolean fullPath, Boolean secure, Map<String, Object> context) {
Method buildLinkHostPart
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String buildLinkHostPart(Delegator delegator, Locale locale, String webSiteId, Boolean secure,
boolean includeWebappPathPrefix, FullWebappInfo.Cache webappInfoCache) {
Method checkFullSecureOrStandard
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static Boolean checkFullSecureOrStandard(HttpServletRequest request, HttpServletResponse response,
Boolean interWebapp, Boolean fullPath, Boolean secure) {
Method buildLinkHostPart
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String buildLinkHostPart(HttpServletRequest request, Locale locale, String webSiteId, Boolean secure, boolean includeWebappPathPrefix) {
Method buildLinkHostPartSafe
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String buildLinkHostPartSafe(HttpServletRequest request, Locale locale, String webSiteId, Boolean secure, boolean includeWebappPathPrefix) {
Method buildLinkHostPartSafe
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static String buildLinkHostPartSafe(Delegator delegator, Locale locale, String webSiteId, Boolean secure, boolean includeWebappPathPrefix) {
Avoid too many return
statements within this method. Open
Open
return !isUrlDelim(path.charAt(0));