org.opennms.netmgt.config.pagesequence
Class Page

java.lang.Object
  extended by org.opennms.netmgt.config.pagesequence.Page
All Implemented Interfaces:
java.io.Serializable

public class Page
extends java.lang.Object
implements java.io.Serializable

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).

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Page()
           
 
Method Summary
 void addParameter(int index, Parameter vParameter)
          Method addParameter
 void addParameter(Parameter vParameter)
          Method addParameter
 void clearParameter()
          Method clearParameter
 void deletePort()
          Method deletePort
 java.util.Enumeration enumerateParameter()
          Method enumerateParameter
 java.lang.String getFailureMatch()
          Returns the value of field 'failureMatch'.
 java.lang.String getFailureMessage()
          Returns the value of field 'failureMessage'.
 java.lang.String getFragment()
          Returns the value of field 'fragment'.
 java.lang.String getHost()
          Returns the value of field 'host'.
 java.lang.String getHttpVersion()
          Returns the value of field 'httpVersion'.
 java.lang.String getMethod()
          Returns the value of field 'method'.
 Parameter[] getParameter()
          Method getParameter
 Parameter getParameter(int index)
          Method getParameter
 java.util.ArrayList getParameterCollection()
          Method getParameterCollection Returns a reference to 'parameter'.
 int getParameterCount()
          Method getParameterCount
 java.lang.String getPath()
          Returns the value of field 'path'.
 int getPort()
          Returns the value of field 'port'.
 java.lang.String getQuery()
          Returns the value of field 'query'.
 java.lang.String getResponseRange()
          Returns the value of field 'responseRange'.
 java.lang.String getScheme()
          Returns the value of field 'scheme'.
 java.lang.String getSuccessMatch()
          Returns the value of field 'successMatch'.
 java.lang.String getUserAgent()
          Returns the value of field 'userAgent'.
 java.lang.String getUserInfo()
          Returns the value of field 'userInfo'.
 java.lang.String getVirtualHost()
          Returns the value of field 'virtualHost'.
 boolean hasPort()
          Method hasPort
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeParameter(Parameter vParameter)
          Method removeParameter
 void setFailureMatch(java.lang.String failureMatch)
          Sets the value of field 'failureMatch'.
 void setFailureMessage(java.lang.String failureMessage)
          Sets the value of field 'failureMessage'.
 void setFragment(java.lang.String fragment)
          Sets the value of field 'fragment'.
 void setHost(java.lang.String host)
          Sets the value of field 'host'.
 void setHttpVersion(java.lang.String httpVersion)
          Sets the value of field 'httpVersion'.
 void setMethod(java.lang.String method)
          Sets the value of field 'method'.
 void setParameter(java.util.ArrayList parameterCollection)
          Method setParameter Sets the value of 'parameter' by copying the given ArrayList.
 void setParameter(int index, Parameter vParameter)
          Method setParameter
 void setParameter(Parameter[] parameterArray)
          Method setParameter
 void setParameterCollection(java.util.ArrayList parameterCollection)
          Method setParameterCollection Sets the value of 'parameter' by setting it to the given ArrayList.
 void setPath(java.lang.String path)
          Sets the value of field 'path'.
 void setPort(int port)
          Sets the value of field 'port'.
 void setQuery(java.lang.String query)
          Sets the value of field 'query'.
 void setResponseRange(java.lang.String responseRange)
          Sets the value of field 'responseRange'.
 void setScheme(java.lang.String scheme)
          Sets the value of field 'scheme'.
 void setSuccessMatch(java.lang.String successMatch)
          Sets the value of field 'successMatch'.
 void setUserAgent(java.lang.String userAgent)
          Sets the value of field 'userAgent'.
 void setUserInfo(java.lang.String userInfo)
          Sets the value of field 'userInfo'.
 void setVirtualHost(java.lang.String virtualHost)
          Sets the value of field 'virtualHost'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Page

public Page()
Method Detail

addParameter

public void addParameter(Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Method addParameter

Parameters:
vParameter -
Throws:
java.lang.IndexOutOfBoundsException

addParameter

public void addParameter(int index,
                         Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Method addParameter

Parameters:
index -
vParameter -
Throws:
java.lang.IndexOutOfBoundsException

clearParameter

public void clearParameter()
Method clearParameter


deletePort

public void deletePort()
Method deletePort


enumerateParameter

public java.util.Enumeration enumerateParameter()
Method enumerateParameter

Returns:
Enumeration

getFailureMatch

public java.lang.String getFailureMatch()
Returns the value of field 'failureMatch'.

Returns:
String

getFailureMessage

public java.lang.String getFailureMessage()
Returns the value of field 'failureMessage'.

Returns:
String

getFragment

public java.lang.String getFragment()
Returns the value of field 'fragment'.

Returns:
String

getHost

public java.lang.String getHost()
Returns the value of field 'host'.

Returns:
String

getHttpVersion

public java.lang.String getHttpVersion()
Returns the value of field 'httpVersion'.

Returns:
String

getMethod

public java.lang.String getMethod()
Returns the value of field 'method'.

Returns:
String

getParameter

public Parameter getParameter(int index)
                       throws java.lang.IndexOutOfBoundsException
Method getParameter

Parameters:
index -
Returns:
Parameter
Throws:
java.lang.IndexOutOfBoundsException

getParameter

public Parameter[] getParameter()
Method getParameter

Returns:
Parameter

getParameterCollection

public java.util.ArrayList getParameterCollection()
Method getParameterCollection Returns a reference to 'parameter'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getParameterCount

public int getParameterCount()
Method getParameterCount

Returns:
int

getPath

public java.lang.String getPath()
Returns the value of field 'path'.

Returns:
String

getPort

public int getPort()
Returns the value of field 'port'.

Returns:
int

getQuery

public java.lang.String getQuery()
Returns the value of field 'query'.

Returns:
String

getResponseRange

public java.lang.String getResponseRange()
Returns the value of field 'responseRange'.

Returns:
String

getScheme

public java.lang.String getScheme()
Returns the value of field 'scheme'.

Returns:
String

getSuccessMatch

public java.lang.String getSuccessMatch()
Returns the value of field 'successMatch'.

Returns:
String

getUserAgent

public java.lang.String getUserAgent()
Returns the value of field 'userAgent'.

Returns:
String

getUserInfo

public java.lang.String getUserInfo()
Returns the value of field 'userInfo'.

Returns:
String

getVirtualHost

public java.lang.String getVirtualHost()
Returns the value of field 'virtualHost'.

Returns:
String

hasPort

public boolean hasPort()
Method hasPort

Returns:
boolean

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeParameter

public boolean removeParameter(Parameter vParameter)
Method removeParameter

Parameters:
vParameter -
Returns:
boolean

setFailureMatch

public void setFailureMatch(java.lang.String failureMatch)
Sets the value of field 'failureMatch'.

Parameters:
failureMatch - the value of field 'failureMatch'.

setFailureMessage

public void setFailureMessage(java.lang.String failureMessage)
Sets the value of field 'failureMessage'.

Parameters:
failureMessage - the value of field 'failureMessage'.

setFragment

public void setFragment(java.lang.String fragment)
Sets the value of field 'fragment'.

Parameters:
fragment - the value of field 'fragment'.

setHost

public void setHost(java.lang.String host)
Sets the value of field 'host'.

Parameters:
host - the value of field 'host'.

setHttpVersion

public void setHttpVersion(java.lang.String httpVersion)
Sets the value of field 'httpVersion'.

Parameters:
httpVersion - the value of field 'httpVersion'.

setMethod

public void setMethod(java.lang.String method)
Sets the value of field 'method'.

Parameters:
method - the value of field 'method'.

setParameter

public void setParameter(int index,
                         Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Method setParameter

Parameters:
index -
vParameter -
Throws:
java.lang.IndexOutOfBoundsException

setParameter

public void setParameter(Parameter[] parameterArray)
Method setParameter

Parameters:
parameterArray -

setParameter

public void setParameter(java.util.ArrayList parameterCollection)
Method setParameter Sets the value of 'parameter' by copying the given ArrayList.

Parameters:
parameterCollection - the Vector to copy.

setParameterCollection

public void setParameterCollection(java.util.ArrayList parameterCollection)
Method setParameterCollection Sets the value of 'parameter' by setting it to the given ArrayList. No type checking is performed.

Parameters:
parameterCollection - the ArrayList to copy.

setPath

public void setPath(java.lang.String path)
Sets the value of field 'path'.

Parameters:
path - the value of field 'path'.

setPort

public void setPort(int port)
Sets the value of field 'port'.

Parameters:
port - the value of field 'port'.

setQuery

public void setQuery(java.lang.String query)
Sets the value of field 'query'.

Parameters:
query - the value of field 'query'.

setResponseRange

public void setResponseRange(java.lang.String responseRange)
Sets the value of field 'responseRange'.

Parameters:
responseRange - the value of field 'responseRange'.

setScheme

public void setScheme(java.lang.String scheme)
Sets the value of field 'scheme'.

Parameters:
scheme - the value of field 'scheme'.

setSuccessMatch

public void setSuccessMatch(java.lang.String successMatch)
Sets the value of field 'successMatch'.

Parameters:
successMatch - the value of field 'successMatch'.

setUserAgent

public void setUserAgent(java.lang.String userAgent)
Sets the value of field 'userAgent'.

Parameters:
userAgent - the value of field 'userAgent'.

setUserInfo

public void setUserInfo(java.lang.String userInfo)
Sets the value of field 'userInfo'.

Parameters:
userInfo - the value of field 'userInfo'.

setVirtualHost

public void setVirtualHost(java.lang.String virtualHost)
Sets the value of field 'virtualHost'.

Parameters:
virtualHost - the value of field 'virtualHost'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.