/** * Releases the namespaces map. */ @Override public void release() { if (this.namespaces != null) { this.namespaces.clear(); this.namespaces = null; } super.release(); }
/** * Constructor. * * @param mediaType * The representation's mediaType. * @param expectedSize * The expected input stream size. */ public OutputRepresentation(MediaType mediaType, long expectedSize) { super(mediaType); setSize(expectedSize); }
/** * Releases the represented object. */ @Override public void release() { setObject(null); super.release(); }
request.setEntity(representation); if (size != null) { representation.setSize(size);
/** * Releases the source and transform sheet representations, the transformer * and the URI resolver. */ @Override public void release() { if (this.sourceRepresentation != null) { this.sourceRepresentation.release(); this.sourceRepresentation = null; } if (this.templates != null) { this.templates = null; } if (this.transformSheet != null) { this.transformSheet.release(); this.transformSheet = null; } if (this.uriResolver != null) { this.uriResolver = null; } super.release(); }