public class UrlUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
buildUrl(javax.servlet.jsp.JspContext jspContext,
String src,
HttpParameters params,
boolean srcAbsolute,
LastModifiedServlet.AddLastModifiedWhen addLastModified) |
static String |
buildUrl(javax.servlet.jsp.PageContext pageContext,
String href,
HttpParameters params,
boolean hrefAbsolute,
LastModifiedServlet.AddLastModifiedWhen addLastModified) |
static String |
buildUrl(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String href, HttpParameters params, boolean hrefAbsolute, LastModifiedServlet.AddLastModifiedWhen addLastModified) throws MalformedURLException, UnsupportedEncodingException
public static String buildUrl(javax.servlet.jsp.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(javax.servlet.jsp.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 © 2016. All rights reserved.