public class ClientLink extends ClientItem implements ClientAnnotatable
Modifier and Type | Class and Description |
---|---|
static class |
ClientLink.Builder |
Modifier and Type | Field and Description |
---|---|
protected String |
mediaETag
ETag for media edit links.
|
protected String |
rel
Link rel.
|
protected ClientLinkType |
type
Link type.
|
link, LOG
Modifier | Constructor and Description |
---|---|
|
ClientLink(URI uri,
ClientLinkType type,
String title)
Constructor.
|
protected |
ClientLink(URI baseURI,
String href,
ClientLinkType type,
String title)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ClientInlineEntity |
asInlineEntity() |
ClientInlineEntitySet |
asInlineEntitySet() |
List<ClientAnnotation> |
getAnnotations() |
String |
getMediaETag()
Gets Media ETag.
|
String |
getRel()
Gets link rel.
|
ClientLinkType |
getType()
Gets link type.
|
protected final ClientLinkType type
protected final String rel
protected String mediaETag
public ClientLink(URI uri, ClientLinkType type, String title)
uri
- URI.type
- type.title
- title.protected ClientLink(URI baseURI, String href, ClientLinkType type, String title)
version
- OData service version.baseURI
- base URI.href
- href.type
- type.title
- title.public ClientLinkType getType()
public ClientInlineEntity asInlineEntity()
public ClientInlineEntitySet asInlineEntitySet()
public String getRel()
public String getMediaETag()
public List<ClientAnnotation> getAnnotations()
getAnnotations
in interface ClientAnnotatable
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.