From: <bra...@us...> - 2010-06-24 20:26:31
|
Revision: 3162 http://archive-access.svn.sourceforge.net/archive-access/?rev=3162&view=rev Author: bradtofel Date: 2010-06-24 20:26:25 +0000 (Thu, 24 Jun 2010) Log Message: ----------- FEATURE: now adds HTTP "Authorization" header to the WaybackRequest Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/WaybackRequest.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/WaybackRequest.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/WaybackRequest.java 2010-06-24 20:25:21 UTC (rev 3161) +++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/WaybackRequest.java 2010-06-24 20:26:25 UTC (rev 3162) @@ -324,6 +324,10 @@ * see HttpServletRequest.getRemoteUser() */ public static final String REQUEST_REMOTE_USER = "requestremoteuser"; + /** + * Exact value from HTTP request for header "Authorization" + */ + public static final String REQUEST_AUTHORIZATION = "Authorization"; /** * User Locale name: Best Guess at users requested locale. @@ -866,6 +870,9 @@ putUnlessNull(REQUEST_WAYBACK_HOSTNAME, httpRequest.getLocalName()); putUnlessNull(REQUEST_AUTH_TYPE, httpRequest.getAuthType()); putUnlessNull(REQUEST_REMOTE_USER, httpRequest.getRemoteUser()); + + putUnlessNull(REQUEST_AUTHORIZATION, + httpRequest.getHeader(REQUEST_AUTHORIZATION)); putUnlessNull(REQUEST_WAYBACK_PORT, String.valueOf(httpRequest.getLocalPort())); putUnlessNull(REQUEST_WAYBACK_CONTEXT, httpRequest.getContextPath()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |