public final class LocalMetadataRequest extends Object
| Constructor and Description | 
|---|
| LocalMetadataRequest()Creates an uninitialized query. | 
| LocalMetadataRequest(Metadata metadata,
                                        RemoteRepository repository,
                                        String context)Creates a query with the specified properties. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getContext()Gets the resolution context. | 
| Metadata | getMetadata()Gets the metadata to query for. | 
| RemoteRepository | getRepository()Gets the remote repository to use as source of the metadata. | 
| LocalMetadataRequest | setContext(String context)Sets the resolution context. | 
| LocalMetadataRequest | setMetadata(Metadata metadata)Sets the metadata to query for. | 
| LocalMetadataRequest | setRepository(RemoteRepository repository)Sets the remote repository to use as sources of the metadata. | 
| String | toString() | 
public LocalMetadataRequest()
public LocalMetadataRequest(Metadata metadata, RemoteRepository repository, String context)
metadata - The metadata to query for, may be null.repository - The source remote repository for the metadata, may be null for local metadata.context - The resolution context for the metadata, may be null.public Metadata getMetadata()
null if not set.public LocalMetadataRequest setMetadata(Metadata metadata)
metadata - The metadata, may be null.null.public String getContext()
null.public LocalMetadataRequest setContext(String context)
context - The resolution context, may be null.null.public RemoteRepository getRepository()
null for local metadata.public LocalMetadataRequest setRepository(RemoteRepository repository)
repository - The remote repository, may be null.null for local metadata.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.