|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.pagesequence.Page
public class Page
This element specifies all the possible attributes in as fine grained detail as possible. All that is really required (as you can see below) is the "path" attribute. From that one attribute, the IP address passed in through the ServiceMonitor and ServiceCollector interface, the URL will be fully generated using the supplied defaults in this config. Configure attributes these attributes to the level of detail you need to fully control the behavior. A little bit of indirection is possible here with the host attribute. If the host attribute is anything other than the default, that value will be used instead of the IP address passed in through the API (Interface).
| Constructor Summary | |
|---|---|
Page()
|
|
| Method Summary | |
|---|---|
void |
addParameter(int index,
Parameter vParameter)
|
void |
addParameter(Parameter vParameter)
|
void |
deletePort()
|
Enumeration<Parameter> |
enumerateParameter()
Method enumerateParameter. |
String |
getFailureMatch()
Returns the value of field 'failureMatch'. |
String |
getFailureMessage()
Returns the value of field 'failureMessage'. |
String |
getFragment()
Returns the value of field 'fragment'. |
String |
getHost()
Returns the value of field 'host'. |
String |
getHttpVersion()
Returns the value of field 'httpVersion'. |
String |
getMethod()
Returns the value of field 'method'. |
Parameter[] |
getParameter()
Method getParameter.Returns the contents of the collection in an Array. |
Parameter |
getParameter(int index)
Method getParameter. |
List<Parameter> |
getParameterCollection()
Method getParameterCollection.Returns a reference to '_parameterList'. |
int |
getParameterCount()
Method getParameterCount. |
String |
getPath()
Returns the value of field 'path'. |
int |
getPort()
Returns the value of field 'port'. |
String |
getQuery()
Returns the value of field 'query'. |
String |
getResponseRange()
Returns the value of field 'responseRange'. |
String |
getScheme()
Returns the value of field 'scheme'. |
String |
getSuccessMatch()
Returns the value of field 'successMatch'. |
String |
getUserAgent()
Returns the value of field 'userAgent'. |
String |
getUserInfo()
Returns the value of field 'userInfo'. |
String |
getVirtualHost()
Returns the value of field 'virtualHost'. |
boolean |
hasPort()
Method hasPort. |
boolean |
isValid()
Method isValid. |
Iterator<Parameter> |
iterateParameter()
Method iterateParameter. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllParameter()
|
boolean |
removeParameter(Parameter vParameter)
Method removeParameter. |
Parameter |
removeParameterAt(int index)
Method removeParameterAt. |
void |
setFailureMatch(String failureMatch)
Sets the value of field 'failureMatch'. |
void |
setFailureMessage(String failureMessage)
Sets the value of field 'failureMessage'. |
void |
setFragment(String fragment)
Sets the value of field 'fragment'. |
void |
setHost(String host)
Sets the value of field 'host'. |
void |
setHttpVersion(String httpVersion)
Sets the value of field 'httpVersion'. |
void |
setMethod(String method)
Sets the value of field 'method'. |
void |
setParameter(int index,
Parameter vParameter)
|
void |
setParameter(List<Parameter> vParameterList)
Sets the value of '_parameterList' by copying the given Vector. |
void |
setParameter(Parameter[] vParameterArray)
|
void |
setParameterCollection(List<Parameter> parameterList)
Deprecated. |
void |
setPath(String path)
Sets the value of field 'path'. |
void |
setPort(int port)
Sets the value of field 'port'. |
void |
setQuery(String query)
Sets the value of field 'query'. |
void |
setResponseRange(String responseRange)
Sets the value of field 'responseRange'. |
void |
setScheme(String scheme)
Sets the value of field 'scheme'. |
void |
setSuccessMatch(String successMatch)
Sets the value of field 'successMatch'. |
void |
setUserAgent(String userAgent)
Sets the value of field 'userAgent'. |
void |
setUserInfo(String userInfo)
Sets the value of field 'userInfo'. |
void |
setVirtualHost(String virtualHost)
Sets the value of field 'virtualHost'. |
static Page |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Page()
| Method Detail |
|---|
public void addParameter(Parameter vParameter)
throws IndexOutOfBoundsException
vParameter -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addParameter(int index,
Parameter vParameter)
throws IndexOutOfBoundsException
index - vParameter -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void deletePort()
public Enumeration<Parameter> enumerateParameter()
public String getFailureMatch()
public String getFailureMessage()
public String getFragment()
public String getHost()
public String getHttpVersion()
public String getMethod()
public Parameter getParameter(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Parameter[] getParameter()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Parameter> getParameterCollection()
public int getParameterCount()
public String getPath()
public int getPort()
public String getQuery()
public String getResponseRange()
public String getScheme()
public String getSuccessMatch()
public String getUserAgent()
public String getUserInfo()
public String getVirtualHost()
public boolean hasPort()
public boolean isValid()
public Iterator<Parameter> iterateParameter()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllParameter()
public boolean removeParameter(Parameter vParameter)
vParameter -
public Parameter removeParameterAt(int index)
index -
public void setFailureMatch(String failureMatch)
failureMatch - the value of field 'failureMatch'.public void setFailureMessage(String failureMessage)
failureMessage - the value of field 'failureMessage'.public void setFragment(String fragment)
fragment - the value of field 'fragment'.public void setHost(String host)
host - the value of field 'host'.public void setHttpVersion(String httpVersion)
httpVersion - the value of field 'httpVersion'.public void setMethod(String method)
method - the value of field 'method'.
public void setParameter(int index,
Parameter vParameter)
throws IndexOutOfBoundsException
index - vParameter -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setParameter(Parameter[] vParameterArray)
vParameterArray - public void setParameter(List<Parameter> vParameterList)
vParameterList - the Vector to copy.public void setParameterCollection(List<Parameter> parameterList)
parameterList - the Vector to set.public void setPath(String path)
path - the value of field 'path'.public void setPort(int port)
port - the value of field 'port'.public void setQuery(String query)
query - the value of field 'query'.public void setResponseRange(String responseRange)
responseRange - the value of field 'responseRange'.public void setScheme(String scheme)
scheme - the value of field 'scheme'.public void setSuccessMatch(String successMatch)
successMatch - the value of field 'successMatch'.public void setUserAgent(String userAgent)
userAgent - the value of field 'userAgent'.public void setUserInfo(String userInfo)
userInfo - the value of field 'userInfo'.public void setVirtualHost(String virtualHost)
virtualHost - the value of field 'virtualHost'.
public static Page unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||