Searched refs:contentLength (Results 1 - 13 of 13) sorted by relevance

/glassfish-3.1.2/web/web-naming/src/main/java/org/apache/naming/resources/
H A DResourceAttributes.java246 protected long contentLength = -1; field in class:ResourceAttributes
344 if (contentLength != -1L)
345 return contentLength;
352 contentLength = ((Long) value).longValue();
355 contentLength = Long.parseLong(value.toString());
365 return contentLength;
372 * @param contentLength New content length value
374 public void setContentLength(long contentLength) { argument
375 this.contentLength = contentLength;
[all...]
H A DFileDirContext.java1145 if (contentLength != -1L)
1146 return contentLength;
1147 contentLength = file.length();
1148 return contentLength;
H A DProxyDirContext.java1533 long contentLength = entry.attributes.getContentLength();
1547 && (contentLength == contentLength2);
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/appserv/web/cache/filter/
H A DCachingResponseWrapper.java84 int contentLength = HttpCacheEntry.VALUE_NOT_SET; field in class:CachingResponseWrapper
172 this.contentLength = len;
379 entry.contentLength = contentLength;
H A DHttpCacheEntry.java69 int contentLength; field in class:HttpCacheEntry
H A DCachingFilter.java331 if (entry.contentLength != HttpCacheEntry.VALUE_NOT_SET) {
332 response.setContentLength(entry.contentLength);
/glassfish-3.1.2/web/web-ajp/src/main/java/org/apache/jk/common/
H A DJkInputStream.java350 long contentLength = res.getContentLengthLong();
351 if( contentLength >= 0 ) {
352 headers.setValue("Content-Length").setLong(contentLength);
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/fileupload/
H A DMultipartStream.java137 private final long contentLength; field in class:MultipartStream.ProgressNotifier
151 contentLength = pContentLength;
172 listener.update(bytesRead, contentLength, items);
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/ssi/
H A DSSIServletExternalResolver.java213 int contentLength = req.getContentLength();
214 if (contentLength >= 0) {
215 retVal = Integer.toString(contentLength);
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/servlets/
H A DDefaultServlet.java929 long contentLength = -1L;
964 contentLength = cacheEntry.attributes.getContentLength();
967 if (contentLength == 0L) {
1008 if ((cacheEntry.resource != null) && (contentLength >= 0)) {
1010 log("DefaultServlet.serveFile: contentLength=" +
1011 contentLength);
1012 if (contentLength < Integer.MAX_VALUE) {
1013 response.setContentLength((int) contentLength);
1016 response.setHeader("content-length", "" + contentLength);
1039 if (!checkSendfile(request, response, cacheEntry, contentLength, nul
[all...]
H A DCGIServlet.java427 out.println("<li><b>contentLength</b> = " +
1142 int contentLength = req.getContentLength();
1143 String sContentLength = (contentLength <= 0 ? "" :
1144 (Integer.valueOf(contentLength)).toString());
/glassfish-3.1.2/web/war-util/src/main/java/org/glassfish/web/loader/
H A DWebappClassLoader.java2131 int contentLength = -1;
2158 contentLength = (int) attributes.getContentLength();
2197 readEntryData(entry, name, binaryStream, contentLength, null);
2215 int contentLength = -1;
2240 contentLength = (int) jarEntry.getSize();
2260 readEntryData(entry, name, binaryStream, contentLength, jarEntry);
2345 int contentLength,
2352 byte[] binaryContent = new byte[contentLength];
2342 readEntryData(ResourceEntry entry, String name, InputStream binaryStream, int contentLength, JarEntry jarEntry) argument
/glassfish-3.1.2/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/
H A DWsUtil.java1470 String[] contentLength = headers.getHeader("Content-Length");
1474 if ((contentLength != null) && (contentLength.length > 0)) {
1475 length = new Integer(contentLength[0]).intValue();

Completed in 49 milliseconds