org.jboss.soa.esb.addressing.eprs
Class HTTPEpr

java.lang.Object
  extended by org.jboss.soa.esb.addressing.EPR
      extended by org.jboss.soa.esb.addressing.eprs.HTTPEpr

public class HTTPEpr
extends EPR

A helper class for using HTTP style EPRs. Simply create instances of this class instead of the base EPR.

Author:
marklittle

Constructor Summary
HTTPEpr(EPR epr)
           
HTTPEpr(EPR epr, org.w3c.dom.Element header)
           
HTTPEpr(java.lang.String url)
           
HTTPEpr(java.net.URL url)
           
 
Method Summary
 java.net.URL getURL()
          Get the URL address.
 void setURL(java.net.URL url)
          Set the URL for this endpoint.
static java.net.URI type()
           
 
Methods inherited from class org.jboss.soa.esb.addressing.EPR
copy, equals, getAddr, setAddr, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTTPEpr

public HTTPEpr(EPR epr)

HTTPEpr

public HTTPEpr(EPR epr,
               org.w3c.dom.Element header)

HTTPEpr

public HTTPEpr(java.net.URL url)
        throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

HTTPEpr

public HTTPEpr(java.lang.String url)
        throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException
Method Detail

setURL

public final void setURL(java.net.URL url)
Set the URL for this endpoint.

Parameters:
url - the address.

getURL

public final java.net.URL getURL()
                          throws java.net.MalformedURLException,
                                 java.net.URISyntaxException
Get the URL address.

Returns:
the address.
Throws:
java.net.URISyntaxException - thrown if the address is invalid.
java.net.MalformedURLException

type

public static final java.net.URI type()