This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
class Wiki2Confluence(object): | |
def __init__(self, filename): | |
super(Wiki2Confluence, self).__init__() | |
f = open(filename) | |
self.lines = f.readlines() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MutableHttpServletRequest extends HttpServletRequestWrapper { | |
private Map<String,String[]> parameters = new HashMap<String,String[]>(); | |
public MutableHttpServletRequest(HttpServletRequest request) { | |
super(request); | |
} | |
public void setParameter(String name, String value) { | |
parameters.put(name, new String[] {value}); |