Examples of dropLastMetaStrings()


Examples of freenet.keys.FreenetURI.dropLastMetaStrings()

        // report to user
        if(logMINOR) {
          Logger.minor(this, "Too many path components: for "+uri+" meta="+metaStrings.toString());
        }
        FreenetURI tryURI = uri;
        tryURI = tryURI.dropLastMetaStrings(metaStrings.size());
        rcb.onFailure(new FetchException(FetchExceptionMode.TOO_MANY_PATH_COMPONENTS, result.size(), (rcb == parent), result.getMimeType(), tryURI), this, context);
      }
      result.asBucket().free();
      return;
    } else if(result.size() > ctx.maxOutputLength) {
View Full Code Here

Examples of freenet.keys.FreenetURI.dropLastMetaStrings()

              rcb.onFailure(new FetchException(FetchExceptionMode.INVALID_METADATA, "Invalid metadata: too many path components in redirects", thisKey), this, context);
            } else {
              // TOO_MANY_PATH_COMPONENTS
              // report to user
              FreenetURI tryURI = uri;
              tryURI = tryURI.dropLastMetaStrings(metaStrings.size());
              rcb.onFailure(new FetchException(FetchExceptionMode.TOO_MANY_PATH_COMPONENTS, metadata.uncompressedDataLength(), (rcb == parent), clientMetadata.getMIMEType(), tryURI), this, context);
            }
            // Just in case...
            return;
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.