org.spiffyui.server
Class AuthServlet
java.lang.Object
HttpServlet
org.spiffyui.server.AuthServlet
public final class AuthServlet
- extends HttpServlet
This servlet is a passthrough for authentication requests.
Field Summary |
static java.lang.String |
CONTENT_TYPE
This is the default content type for an HTML file. |
static java.lang.String |
INVALID_JSON_RESPONSE
This is a constant indicating the authentication server returned invalid JSON |
Method Summary |
void |
service(HttpServletRequest request,
HttpServletResponse response)
|
static void |
setUrlValidator(AuthURLValidator validator)
Sets the URL validator for this authentication servlet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INVALID_JSON_RESPONSE
public static final java.lang.String INVALID_JSON_RESPONSE
- This is a constant indicating the authentication server returned invalid JSON
- See Also:
- Constant Field Values
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPE
- This is the default content type for an HTML file.
- See Also:
- Constant Field Values
AuthServlet
public AuthServlet()
setUrlValidator
public static void setUrlValidator(AuthURLValidator validator)
- Sets the URL validator for this authentication servlet.
- Parameters:
validator
- the validator
service
public void service(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
- Throws:
ServletException
java.io.IOException