com.heroku.api.request.log
Class LogStreamResponse
java.lang.Object
com.heroku.api.request.log.LogStreamResponse
public class LogStreamResponse
- extends Object
Handles Log responses. When a log is requested, a URL is returned to Logplex.
To begin reading logs, use openStream(). getLogStreamURL() can also be used directly to create a custom connection to Logplex.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogStreamResponse
public LogStreamResponse(URL streamUrl)
getLogStreamURL
public URL getLogStreamURL()
- A logplex session URL. Using Logplex directly will generally require you to add logplex's certificate to java's keystore.
openStream() for a
convenience method that bypasses SSL verification.
- Returns:
openStream
public InputStream openStream()
- Creates a
URLConnection to logplex. SSL verification is not used because Logplex's certificate is not signed by an authority that exists
in the standard java keystore.
- Returns:
Copyright © 2012. All Rights Reserved.