org.opennms.netmgt.config.httpdatacollection
Class Url

java.lang.Object
  extended by org.opennms.netmgt.config.httpdatacollection.Url
All Implemented Interfaces:
Serializable

public class Url
extends Object
implements Serializable

Class Url.

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

Constructor Summary
Url()
           
 
Method Summary
 void deletePort()
           
 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 getMatches()
          Returns the value of field 'matches'.
 String getMethod()
          Returns the value of field 'method'.
 Parameters getParameters()
          Returns the value of field 'parameters'.
 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 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.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 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 setMatches(String matches)
          Sets the value of field 'matches'.
 void setMethod(String method)
          Sets the value of field 'method'.
 void setParameters(Parameters parameters)
          Sets the value of field 'parameters'.
 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 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 Url 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

Url

public Url()
Method Detail

deletePort

public void deletePort()

getFragment

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

Returns:
the value of field 'Fragment'.

getHost

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

Returns:
the value of field 'Host'.

getHttpVersion

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

Returns:
the value of field 'HttpVersion'.

getMatches

public String getMatches()
Returns the value of field 'matches'.

Returns:
the value of field 'Matches'.

getMethod

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

Returns:
the value of field 'Method'.

getParameters

public Parameters getParameters()
Returns the value of field 'parameters'.

Returns:
the value of field 'Parameters'.

getPath

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

Returns:
the value of field 'Path'.

getPort

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

Returns:
the value of field 'Port'.

getQuery

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

Returns:
the value of field 'Query'.

getResponseRange

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

Returns:
the value of field 'ResponseRange'.

getScheme

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

Returns:
the value of field 'Scheme'.

getUserAgent

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

Returns:
the value of field 'UserAgent'.

getUserInfo

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

Returns:
the value of field 'UserInfo'.

getVirtualHost

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

Returns:
the value of field 'VirtualHost'.

hasPort

public boolean hasPort()
Method hasPort.

Returns:
true if at least one Port has been added

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

marshal

public void marshal(Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
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

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
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 marshaling

setFragment

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

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

setHost

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

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

setHttpVersion

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

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

setMatches

public void setMatches(String matches)
Sets the value of field 'matches'.

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

setMethod

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

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

setParameters

public void setParameters(Parameters parameters)
Sets the value of field 'parameters'.

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

setPath

public void setPath(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(String query)
Sets the value of field 'query'.

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

setResponseRange

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

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

setScheme

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

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

setUserAgent

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

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

setUserInfo

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

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

setVirtualHost

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

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

unmarshal

public static Url unmarshal(Reader reader)
                     throws org.exolab.castor.xml.MarshalException,
                            org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.opennms.netmgt.config.httpdatacollection.Url
Throws:
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

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema


Copyright ? 2008. All Rights Reserved.