yawiki.server.application
Class Save

java.lang.Object
  extended by HttpServlet
      extended by yawiki.server.application.Save

public class Save
extends HttpServlet


Field Summary
static int COMMENTS_FAILED
           
static int CSS_FAILED
           
static int EMBEDDED_FAILED
           
static int FORMS_FAILED
           
static int FRAMES_FAILED
           
static int HTML_HEADER_FAILED
           
static int ILLEGAL_SQL_FAILED
           
static int IMAGES_FAILED
           
static int JAVASCRIPT_FAILED
           
static int NOSCRIPT_FAILED
           
static int NULL_FAILED
           
 
Constructor Summary
Save()
           
 
Method Summary
 int acceptable(java.lang.String in, User user, java.lang.String pageTitle)
           
 boolean allowed(java.lang.String page, User user)
           
 void doGet(HttpServletRequest request, HttpServletResponse response)
           
 void doPost(HttpServletRequest request, HttpServletResponse response)
           
 java.lang.String getReason(int code, java.lang.String buffer)
           
 User getUser(java.lang.String userid, java.lang.String password)
           
 void init(ServletConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_FAILED

public static final int NULL_FAILED
See Also:
Constant Field Values

ILLEGAL_SQL_FAILED

public static final int ILLEGAL_SQL_FAILED
See Also:
Constant Field Values

JAVASCRIPT_FAILED

public static final int JAVASCRIPT_FAILED
See Also:
Constant Field Values

CSS_FAILED

public static final int CSS_FAILED
See Also:
Constant Field Values

IMAGES_FAILED

public static final int IMAGES_FAILED
See Also:
Constant Field Values

FORMS_FAILED

public static final int FORMS_FAILED
See Also:
Constant Field Values

HTML_HEADER_FAILED

public static final int HTML_HEADER_FAILED
See Also:
Constant Field Values

COMMENTS_FAILED

public static final int COMMENTS_FAILED
See Also:
Constant Field Values

NOSCRIPT_FAILED

public static final int NOSCRIPT_FAILED
See Also:
Constant Field Values

EMBEDDED_FAILED

public static final int EMBEDDED_FAILED
See Also:
Constant Field Values

FRAMES_FAILED

public static final int FRAMES_FAILED
See Also:
Constant Field Values
Constructor Detail

Save

public Save()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Throws:
ServletException

getReason

public java.lang.String getReason(int code,
                                  java.lang.String buffer)

acceptable

public int acceptable(java.lang.String in,
                      User user,
                      java.lang.String pageTitle)

getUser

public User getUser(java.lang.String userid,
                    java.lang.String password)

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws java.io.IOException,
                  ServletException
Throws:
java.io.IOException
ServletException

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws java.io.IOException,
                   ServletException
Throws:
java.io.IOException
ServletException

allowed

public boolean allowed(java.lang.String page,
                       User user)