Revision 8588
Added by ben leinfelder about 10 years ago
MetaCatServlet.java | ||
---|---|---|
795 | 795 |
|
796 | 796 |
// handle login action |
797 | 797 |
if (action.equals("login")) { |
798 |
PrintWriter out = response.getWriter(); |
|
798 |
//PrintWriter out = response.getWriter(); |
|
799 |
Writer out = new OutputStreamWriter(response.getOutputStream(), DEFAULT_ENCODING); |
|
799 | 800 |
handler.handleLoginAction(out, params, request, response); |
800 | 801 |
out.close(); |
801 | 802 |
|
802 | 803 |
// handle logout action |
803 | 804 |
} else if (action.equals("logout")) { |
804 |
PrintWriter out = response.getWriter();
|
|
805 |
Writer out = new OutputStreamWriter(response.getOutputStream(), DEFAULT_ENCODING);
|
|
805 | 806 |
handler.handleLogoutAction(out, params, request, response); |
806 | 807 |
out.close(); |
807 | 808 |
|
808 |
// handle shrink DBConnection request
|
|
809 |
// handle session validate request
|
|
809 | 810 |
} else if (action.equals("validatesession")) { |
810 |
PrintWriter out = response.getWriter();
|
|
811 |
Writer out = new OutputStreamWriter(response.getOutputStream(), DEFAULT_ENCODING);
|
|
811 | 812 |
String idToValidate = null; |
812 | 813 |
String idsToValidate[] = params.get("sessionid"); |
813 | 814 |
if (idsToValidate != null) { |
... | ... | |
942 | 943 |
DocumentUtil.isAuthorized(out, params, request, response); |
943 | 944 |
out.close(); |
944 | 945 |
} else if (action.equals("getprincipals")) { |
945 |
PrintWriter out = response.getWriter();
|
|
946 |
Writer out = new OutputStreamWriter(response.getOutputStream(), DEFAULT_ENCODING);
|
|
946 | 947 |
handler.handleGetPrincipalsAction(out, userName, password); |
947 | 948 |
out.close(); |
948 | 949 |
} else if (action.equals("getdoctypes")) { |
Also available in: Unified diff
allow utf-8 user first/last names to be used in responses for: login, logout, validatesession, getprincipals.