com.jakewharton.pingdom.entities
Class Check.HttpType

java.lang.Object
  extended by com.jakewharton.pingdom.entities.Check.HttpType
Enclosing class:
Check

public static final class Check.HttpType
extends Object

Check.CheckTypeBase wrapper which only exposes methods appropriate for an HTTP check type.

Author:
Jake Wharton

Method Summary
 Boolean getEncryption()
          Connection encryption.
 String getPassword()
          Password for target HTTP authentication.
 Integer getPort()
          Target port.
 String getPostData()
          Data that should be posted to the web page, for example submission data for a sign-up or login form.
 Map<String,String> getRequestHeaders()
          Custom HTTP headers.
 String getShouldContain()
          Target site should contain this string.
 String getShouldNotContain()
          Target site should NOT contain this string.
 String getUrl()
          Path to target on server.
 String getUsername()
          Username for target HTTP authentication.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUrl

public String getUrl()
Path to target on server.

Returns:
Value.
Since:
2.0

getEncryption

public Boolean getEncryption()
Connection encryption.

Returns:
Value.
Since:
2.0

getPort

public Integer getPort()
Target port.

Returns:
Value.
Since:
2.0

getUsername

public String getUsername()
Username for target HTTP authentication.

Returns:
Value.
Since:
2.0

getPassword

public String getPassword()
Password for target HTTP authentication.

Returns:
Value.
Since:
2.0

getShouldContain

public String getShouldContain()
Target site should contain this string.

Returns:
Value.
Since:
2.0

getShouldNotContain

public String getShouldNotContain()
Target site should NOT contain this string.

Returns:
Value.
Since:
2.0

getPostData

public String getPostData()
Data that should be posted to the web page, for example submission data for a sign-up or login form. The data needs to be formatted in the same way as a web browser would send it to the web server.

Returns:
Value.
Since:
2.0

getRequestHeaders

public Map<String,String> getRequestHeaders()
Custom HTTP headers. Entry name should match header name.

Returns:
Value.
Since:
2.0


Copyright © 2011 Jake Wharton. All Rights Reserved.