1 package com.ibm.webdav; 2 3 15 16 36 public class ResourceContext { 37 protected HTTPHeaders requestContext = new HTTPHeaders(); 38 protected HTTPHeaders responseContext = new HTTPHeaders(); 39 protected WebDAVStatus statusCode = new WebDAVStatus(); 40 protected String methodName = "unknown"; 41 46 public HTTPHeaders getRequestContext() { 47 return requestContext; 48 } 49 54 public HTTPHeaders getResponseContext() { 55 return responseContext; 56 } 57 62 public WebDAVStatus getStatusCode() { 63 return statusCode; 64 } 65 66 public String getMethodName() { 67 return methodName; 68 } 69 70 75 public void setRequestContext(HTTPHeaders newRequestContext) { 76 requestContext = newRequestContext; 77 } 78 83 public void setResponseContext(HTTPHeaders newResponseContext) { 84 responseContext = newResponseContext; 85 } 86 91 public void setStatusCode(WebDAVStatus newStatusCode) { 92 statusCode = newStatusCode; 93 } 94 95 public void setMethodName(String newMethodName) { 96 methodName = newMethodName; 97 } 98 } 99 | Popular Tags |