/** * Static factory method to allow the standard code of * {@code Schema.builder()} to return something useful. */ public static MetadataRegistry builder() { return new MetadataRegistry(); }
/** * Static factory method to allow the standard code of * {@code Schema.builder()} to return something useful. */ public static MetadataRegistry builder() { return new MetadataRegistry(); }
/** * Static factory method to allow the standard code of * {@code Schema.builder()} to return something useful. */ public static MetadataRegistry builder() { return new MetadataRegistry(); }
/** * Constructs a new Service instance that is configured to accept arbitrary * extension data within feed or entry elements. */ public Service() { // Set the default User-Agent value for requests requestFactory.setHeader("User-Agent", getServiceVersion()); // Initialize the protocol version for this Service instance protocolVersion = initProtocolVersion(getClass()); // The default extension profile is configured to accept arbitrary XML // at the feed or entry level. A client never wants to lose any // foreign markup, so capture everything even if not explicitly // understood. new com.google.gdata.data.Feed().declareExtensions(extProfile); // The default metadata registry contains the basic feed plus the // version transforms for atom and atompub. this.metadataRegistry = new MetadataRegistry(); Feed.registerMetadata(metadataRegistry); AtomVersionTransforms.addTransforms(metadataRegistry); AtompubVersionTransforms.addTransforms(metadataRegistry); }
/** * Constructs a new Service instance that is configured to accept arbitrary * extension data within feed or entry elements. */ public Service() { // Set the default User-Agent value for requests requestFactory.setHeader("User-Agent", getServiceVersion()); // Initialize the protocol version for this Service instance protocolVersion = initProtocolVersion(getClass()); // The default extension profile is configured to accept arbitrary XML // at the feed or entry level. A client never wants to lose any // foreign markup, so capture everything even if not explicitly // understood. new com.google.gdata.data.Feed().declareExtensions(extProfile); // The default metadata registry contains the basic feed plus the // version transforms for atom and atompub. this.metadataRegistry = new MetadataRegistry(); Feed.registerMetadata(metadataRegistry); AtomVersionTransforms.addTransforms(metadataRegistry); AtompubVersionTransforms.addTransforms(metadataRegistry); }
/** * Constructs a new Service instance that is configured to accept arbitrary * extension data within feed or entry elements. */ public Service() { // Set the default User-Agent value for requests requestFactory.setHeader("User-Agent", getServiceVersion()); // Initialize the protocol version for this Service instance protocolVersion = initProtocolVersion(getClass()); // The default extension profile is configured to accept arbitrary XML // at the feed or entry level. A client never wants to lose any // foreign markup, so capture everything even if not explicitly // understood. new com.google.gdata.data.Feed().declareExtensions(extProfile); // The default metadata registry contains the basic feed plus the // version transforms for atom and atompub. this.metadataRegistry = new MetadataRegistry(); Feed.registerMetadata(metadataRegistry); AtomVersionTransforms.addTransforms(metadataRegistry); AtompubVersionTransforms.addTransforms(metadataRegistry); }