Example usage for twitter4j URLEntity getText

List of usage examples for twitter4j URLEntity getText

Introduction

In this page you can find the example usage for twitter4j URLEntity getText.

Prototype

@Override
String getText();

Source Link

Document

Returns the URL mentioned in the tweet.
This method implementation is to meet TweetEntity interface and the behavior is equivalent to #getURL()

Usage

From source file:com.github.jcustenborder.kafka.connect.twitter.StatusConverter.java

License:Apache License

static Struct convertURLEntity(URLEntity uRLEntity) {
    return new Struct(SCHEMA_URL_ENTITY).put("URL", uRLEntity.getURL()).put("Text", uRLEntity.getText())
            .put("ExpandedURL", uRLEntity.getExpandedURL()).put("Start", uRLEntity.getStart())
            .put("End", uRLEntity.getEnd()).put("DisplayURL", uRLEntity.getDisplayURL());
}