Skip to content

Commit

Permalink
builder -> endpoint docs rename
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolay-ngrok committed Oct 27, 2023
1 parent 7eef2fd commit af5ee65
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ngrok-java/src/main/java/com/ngrok/MetadataBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public abstract class MetadataBuilder<T extends MetadataBuilder> {
private Optional<String> forwardsTo = Optional.empty();

/**
* Sets the metadata for this builder.
* Sets the metadata for this endpoint.
*
* @param metadata the metadata
* @return An instance the builder represented by type T
Expand All @@ -24,7 +24,7 @@ public T metadata(String metadata) {
}

/**
* Sets the forwarding information for this builder.
* Sets the forwarding information for this endpoint.
*
* If you need to automatically forward connections, you can use {@link Forwarder}, either
* through using {@link Forwarder.Builder} or directly calling methods on {@link Session}
Expand All @@ -42,17 +42,16 @@ public T forwardsTo(String forwardsTo) {
}

/**
* Returns the metadata for this builder.
* Returns the metadata for this endpoint.
*
* @return the metadata
*/
public Optional<String> getMetadata() {
return metadata;
}


/**
* Returns the forwarding information for this builder.
* Returns the forwarding information for this endpoint.
*
* @return the forwarding information
*/
Expand Down

0 comments on commit af5ee65

Please sign in to comment.