KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > directwebremoting > servlet > AuthHandler


1 /*
2  * Copyright 2005 Joe Walker
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.directwebremoting.servlet;
17
18 import org.directwebremoting.util.MimeConstants;
19
20 /**
21  * A Handler that supports requests for auth.js
22   */

23 public class AuthHandler extends FileHandler
24 {
25     /**
26      * Setup the {@link FileHandler} defaults
27      */

28     public AuthHandler()
29     {
30         setMimeType(MimeConstants.MIME_JS);
31         setDynamic(true);
32     }
33
34     /**
35      * The URL for this Handler.
36      * @param url The URL for this Handler.
37      */

38     public void setAuthHandlerUrl(String JavaDoc url)
39     {
40         setFilePath(url);
41     }
42 }
43
Popular Tags