/** * The default behavior of this method is to return getServerPort() * on the wrapped request object. */ public int getServerPort() { return this.request.getServerPort(); }
protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception { int requiredPort = toPort(mappedValue); int requestPort = request.getServerPort(); return requiredPort == requestPort; }
public ClientRedirectSavedRequest(HttpServletRequest request, String redirectUrl) { super(request, req -> req.getServerPort()); this.redirectUrl = redirectUrl; parameters = Collections.unmodifiableMap(UaaUrlUtils.getParameterMap(redirectUrl)); }
/** * The default behavior of this method is to return getServerPort() * on the wrapped request object. */ public int getServerPort() { return this.request.getServerPort(); }
/** * The default behavior of this method is to return getServerPort() * on the wrapped request object. */ public int getServerPort() { return this.request.getServerPort(); }
public void doGet(ServletRequest request, ServletResponse response) { System.out.println("Host = " + request.getServerName()); System.out.println("Port = " + request.getServerPort()); }
@SuppressFBWarnings("SERVLET_SERVER_NAME") private URI getBaseUri(ServletRequest request, String basePath) { String finalBasePath = basePath; if (!finalBasePath.startsWith("/")) { finalBasePath = "/" + finalBasePath; } String uriString = new StringBuilder().append(request.getScheme()) .append("://") .append(request.getServerName()) .append(":") .append(request.getServerPort()) .append(finalBasePath).toString(); return UriBuilder.fromUri(uriString).build(); }
/** * The default behavior of this method is to return getServerPort() * on the wrapped request object. */ public int getServerPort() { return this.request.getServerPort(); }
/** * The default behavior of this method is to return getServerPort() * on the wrapped request object. */ public int getServerPort() { return this.request.getServerPort(); }
/** * The default behavior of this method is to return getServerPort() * on the wrapped request object. */ public int getServerPort() { return this.request.getServerPort(); }
/** * The default behavior of this method is to return getServerPort() on the * wrapped request object. */ @Override public int getServerPort() { return this.request.getServerPort(); }
/** * The default behavior of this method is to return getServerPort() * on the wrapped request object. */ public int getServerPort() { return this.request.getServerPort(); }
/** * The default behavior of this method is to return getServerPort() * on the wrapped request object. */ public int getServerPort() { return this.request.getServerPort(); }
/** * The default behavior of this method is to return getServerPort() on the * wrapped request object. */ @Override public int getServerPort() { return this.request.getServerPort(); }
/** * The default behavior of this method is to return getServerPort() * on the wrapped request object. */ public int getServerPort() { return this.request.getServerPort(); }
/** * The default behavior of this method is to return getServerPort() * on the wrapped request object. */ public int getServerPort() { return this.request.getServerPort(); }
/** * The default behavior of this method is to return getServerPort() * on the wrapped request object. */ public int getServerPort() { return this.request.getServerPort(); }
/** * The default behavior of this method is to return getServerPort() * on the wrapped request object. */ public int getServerPort() { return this.request.getServerPort(); }
/** * The default behavior of this method is to return getServerPort() * on the wrapped request object. */ public int getServerPort() { return this.request.getServerPort(); }
public static void setRequestInfo(ServletRequest req) { host.set(req.getServerName()); port.set("" + req.getServerPort()); scheme.set(req.getScheme()); // Temporary solution since variables are not available in forked thread during js processing System.setProperty(HOST, req.getServerName()); System.setProperty(PORT, "" + req.getServerPort()); System.setProperty(SCHEME, req.getScheme()); }