Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class UrlUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
buildUrl(JspContext jspContext,
String src,
HttpParameters params,
boolean srcAbsolute,
LastModifiedServlet.AddLastModifiedWhen addLastModified) |
static String |
buildUrl(PageContext pageContext,
String href,
HttpParameters params,
boolean hrefAbsolute,
LastModifiedServlet.AddLastModifiedWhen addLastModified) |
static String |
buildUrl(ServletContext servletContext,
HttpServletRequest request,
HttpServletResponse response,
String href,
HttpParameters params,
boolean hrefAbsolute,
LastModifiedServlet.AddLastModifiedWhen addLastModified)
Performs all the proper URL conversions along with optionally adding a lastModified parameter.
|
static String |
decodeUrlPath(String href,
String encoding)
Decodes the URL up to the first ?, if present.
|
static String |
encodeUrlPath(String href,
String encoding)
Encodes the URL up to the first ?, if present.
|
public static String encodeUrlPath(String href, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException#decodeUrlPath(java.lang.String)public static String decodeUrlPath(String href, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException#encodeUrlPath(java.lang.String)public static String buildUrl(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, String href, HttpParameters params, boolean hrefAbsolute, LastModifiedServlet.AddLastModifiedWhen addLastModified) throws MalformedURLException, UnsupportedEncodingException
public static String buildUrl(PageContext pageContext, String href, HttpParameters params, boolean hrefAbsolute, LastModifiedServlet.AddLastModifiedWhen addLastModified) throws MalformedURLException, UnsupportedEncodingException
MalformedURLExceptionUnsupportedEncodingException#buildUrl(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, com.aoindustries.net.HttpParameters, boolean)public static String buildUrl(JspContext jspContext, String src, HttpParameters params, boolean srcAbsolute, LastModifiedServlet.AddLastModifiedWhen addLastModified) throws MalformedURLException, UnsupportedEncodingException
MalformedURLExceptionUnsupportedEncodingException#buildUrl(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, com.aoindustries.net.HttpParameters, boolean)Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.