Permalink
Browse files

Added some JavaDoc.

  • Loading branch information...
luccioman committed Jan 6, 2017
1 parent 52d05d1 commit e3892b09570013491243768d598cbb3e4a7e7062
Showing with 24 additions and 0 deletions.
  1. +20 −0 htroot/sharedBlacklist_p.java
  2. +4 −0 source/net/yacy/server/serverObjects.java
@@ -58,6 +58,13 @@
import org.xml.sax.SAXException;
/**
* Handle blacklist import operations. Either :
* <ul>
* <li>load items for selection</li>
* <li>or import selected items</li>
* </ul>
*/
public class sharedBlacklist_p {
public static final int STATUS_NONE = 0;
@@ -68,6 +75,19 @@
public static final int STATUS_WRONG_INVOCATION = 5;
public static final int STATUS_PARSE_ERROR = 6;
/**
* Try to load blacklist items for selection or to import selected items.
* Handled blacklist source types :
* <ul>
* <li>hash : hash signature of a peer having a shared blacklist</li>
* <li>url : blacklist url</li>
* <li>file : local filesystem blacklist file path</li>
* </ul>
* @param header current servlet request header
* @param post must contain selected blacklist items or a blacklist resource to load
* @param env server environment
* @return the servlet answer
*/
public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, final serverSwitch env) {
final Switchboard sb = (Switchboard) env;
// return variable that accumulates replacements
@@ -78,7 +78,11 @@ This shall speed up usage when a slow internet connection is used (dial-up)
private static final long serialVersionUID = 3999165204849858546L;
public static final String ACTION_AUTHENTICATE = "AUTHENTICATE";
/** Key for an URL redirection : should be associated with the redirected location.
* The main servlet handles this to produce an HTTP 302 status. */
public static final String ACTION_LOCATION = "LOCATION";
public final static String ADMIN_AUTHENTICATE_MSG = "admin log-in. If you don't know the password, set it with {yacyhome}/bin/passwd.sh {newpassword}";
private final static Pattern patternNewline = Pattern.compile("\n");

0 comments on commit e3892b0

Please sign in to comment.