summaryrefslogtreecommitdiffstats
path: root/branches
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-03-19 06:58:27 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-03-19 06:58:27 +0000
commiteab7994df61c2d7d012596b5dc54738acdba7cdf (patch)
tree71efcd54d68da5db5e45bb3f19c14a7300457875 /branches
parent2ee32aca8bbc75f468ef8a466a937ec4296e5660 (diff)
Small method name change
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@755855 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches')
-rw-r--r--branches/sca-java-1.x/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/branches/sca-java-1.x/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java b/branches/sca-java-1.x/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java
index 084f52026f..41be041621 100644
--- a/branches/sca-java-1.x/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java
+++ b/branches/sca-java-1.x/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java
@@ -106,7 +106,7 @@ public class HTTPBindingListenerServlet extends HttpServlet {
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
if(requiresAuthentication) {
- if(! hasAuthenticationHeader(request, response)) {
+ if(! hasAuthorization(request, response)) {
response.setHeader("WWW-Authenticate", "BASIC realm=\"Tuscany\"");
response.sendError(HttpServletResponse.SC_UNAUTHORIZED);
}
@@ -503,7 +503,7 @@ public class HTTPBindingListenerServlet extends HttpServlet {
*/
- private boolean hasAuthenticationHeader(HttpServletRequest request, ServletResponse response) {
+ private boolean hasAuthorization(HttpServletRequest request, ServletResponse response) {
boolean result = false;
if(request.getHeader("Authorization") != null) {
result = true;