|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.oauth.server.OAuthServlet
public class OAuthServlet
Utility methods for servlets that implement OAuth.
| Constructor Summary | |
|---|---|
OAuthServlet()
|
|
| Method Summary | |
|---|---|
static net.oauth.OAuthMessage |
getMessage(HttpServletRequest request,
java.lang.String URL)
Extract the parts of the given request that are relevant to OAuth. |
static java.lang.String |
getRequestURL(HttpServletRequest request)
Reconstruct the requested URL, complete with query string (if any). |
static void |
handleException(HttpServletResponse response,
java.lang.Exception e,
java.lang.String realm)
|
static void |
handleException(HttpServletResponse response,
java.lang.Exception e,
java.lang.String realm,
boolean sendBody)
|
static java.lang.String |
htmlEncode(java.lang.String s)
Return the HTML representation of the given plain text. |
static void |
sendForm(HttpServletResponse response,
java.lang.Iterable<? extends java.util.Map.Entry> parameters)
Send the given parameters as a form-encoded response body. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OAuthServlet()
| Method Detail |
|---|
public static net.oauth.OAuthMessage getMessage(HttpServletRequest request,
java.lang.String URL)
URL - the official URL of this service; that is the URL a legitimate
client would use to compute the digital signature. If this
parameter is null, this method will try to reconstruct the URL
from the HTTP request; which may be wrong in some cases.public static java.lang.String getRequestURL(HttpServletRequest request)
public static void handleException(HttpServletResponse response,
java.lang.Exception e,
java.lang.String realm)
throws java.io.IOException,
ServletException
java.io.IOException
ServletException
public static void handleException(HttpServletResponse response,
java.lang.Exception e,
java.lang.String realm,
boolean sendBody)
throws java.io.IOException,
ServletException
java.io.IOException
ServletException
public static void sendForm(HttpServletResponse response,
java.lang.Iterable<? extends java.util.Map.Entry> parameters)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String htmlEncode(java.lang.String s)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||