| Modifier and Type | Field and Description |
|---|---|
protected int |
connectionTimeout |
protected String |
key |
protected URL |
notificationUrl |
protected Proxy |
proxy |
protected int |
readTimeout |
protected static String |
SAMEBUG_PLATFORM |
protected static String |
SAMEBUG_VERSION |
protected String |
server |
protected String |
version |
| Constructor and Description |
|---|
AbstractNotifier()
Create a new AbstractNotifier instance, configured by the property file
named 'samebug.properties' in the classpath.
|
AbstractNotifier(String applicationKey)
Create a new AbstractNotifier with the given application key.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureByProperties(String propertyResourceFile) |
protected HttpURLConnection |
createConnection() |
protected InputStream |
openResource(String resourceName) |
protected static final String SAMEBUG_VERSION
protected static final String SAMEBUG_PLATFORM
protected int connectionTimeout
protected String key
protected URL notificationUrl
protected int readTimeout
protected String server
protected String version
protected Proxy proxy
public AbstractNotifier()
public AbstractNotifier(String applicationKey)
applicationKey - the key associated with your application in Samebugprotected void configureByProperties(String propertyResourceFile)
protected HttpURLConnection createConnection() throws UrlEncodingError
UrlEncodingErrorprotected InputStream openResource(String resourceName) throws NoConfigFileException, MultipleConfigFileException, IOException
Copyright © 2014. All rights reserved.