|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.appdynamics.eumagent.runtime.CollectorChannel
public abstract class CollectorChannel
Class for customizing the connection between the agent SDK and the collector.
| Constructor Summary | |
|---|---|
CollectorChannel()
|
|
| Method Summary | |
|---|---|
void |
addRequestProperty(java.lang.String property,
java.lang.String value)
Adds a header to the request. |
int |
getConnectTimeout()
|
abstract java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHeaderFields()
Sends the request, if it hasn't been sent already, and returns the response headers. |
abstract java.io.InputStream |
getInputStream()
Sends the request, if it hasn't been sent already, and opens a stream for reading the response body. |
abstract java.io.OutputStream |
getOutputStream()
Opens a stream for writing a request body. |
int |
getReadTimeout()
|
java.lang.String |
getRequestMethod()
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getRequestProperties()
|
abstract int |
getResponseCode()
Sends the request, if it hasn't been sent already, and returns the response status code. |
java.net.URL |
getURL()
|
void |
setConnectTimeout(int connectTimeout)
Sets the timeout, in milliseconds, for establishing a connection to the collector. |
void |
setReadTimeout(int readTimeout)
Sets the timeout, in milliseconds, for reading data from the collector. |
void |
setRequestMethod(java.lang.String requestMethod)
Sets the HTTP method used to make the request. |
void |
setURL(java.net.URL url)
Sets the URL to which the request should be sent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectorChannel()
| Method Detail |
|---|
public void setURL(java.net.URL url)
public java.net.URL getURL()
public void setConnectTimeout(int connectTimeout)
public int getConnectTimeout()
public void setReadTimeout(int readTimeout)
public int getReadTimeout()
public void addRequestProperty(java.lang.String property,
java.lang.String value)
property - The name of the header.value - The value of the header.public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getRequestProperties()
public void setRequestMethod(java.lang.String requestMethod)
requestMethod - The request method, such as "GET" or "POST".public java.lang.String getRequestMethod()
public abstract java.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOException - If an I/O error occurs.
public abstract java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOException - If an I/O error occurs.
public abstract int getResponseCode()
throws java.io.IOException
java.io.IOException - If an I/O error occurs.
public abstract java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaderFields()
throws java.io.IOException
java.io.IOException - If an I/O error occurs.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||