Package com.sun.jndi.cosnaming

Examples of com.sun.jndi.cosnaming.IiopUrl


    protected Name getURLSuffix(String prefix, String url)
  throws NamingException {
      // Rewrite to corbaname url
      url = corbanameURLContextFactory.rewriteUrl(url);
      try {
    IiopUrl parsedUrl = new IiopUrl(url);
    return parsedUrl.getCosName();
      } catch (MalformedURLException e) {
    throw new InvalidNameException(e.getMessage());
      }
    }
View Full Code Here


     */
    public String[] getEndpointForProviderURL(String providerURLString) {
       String[] newList = null;
  if (providerURLString != null) {
      try {
    IiopUrl providerURL = new IiopUrl(providerURLString);
    newList = getAddressPortList(providerURL)
    _logger.log(Level.WARNING, "no.endpoints.selected.provider",
          new Object[] {providerURLString});
      } catch (MalformedURLException me) {
    _logger.log(Level.WARNING, "provider.exception",
View Full Code Here

    private String [] getAddressPortList(String [] hostPortList) {
        // The list is assumed to contain <HOST NAME>:<PORT> values
        Vector addressPortVector = new Vector();
        for (int i=0; i<hostPortList.length; i++) {
            try {
                IiopUrl url = new IiopUrl("iiop://"+hostPortList[i]);
                String [] apList = getAddressPortList(url);
                for (int j=0; j<apList.length; j++) {
                    addressPortVector.addElement(apList[j]);
                }
            } catch (MalformedURLException me) {
View Full Code Here

     */
    protected Name getURLSuffix(String prefix, String url)
        throws NamingException {
        try {
            if (url.startsWith("iiop://") || url.startsWith("iiopname://")) {
                IiopUrl parsedUrl = new IiopUrl(url);
                return parsedUrl.getCosName();
            } else if (url.startsWith("corbaname:")) {
                CorbanameUrl parsedUrl = new CorbanameUrl(url);
                return parsedUrl.getCosName();
            } else {
                throw new MalformedURLException("Not a valid URL: " + url);
            }
        } catch (MalformedURLException e) {
            throw new InvalidNameException(e.getMessage());
View Full Code Here

     * SerialInitContextFactory.getInitialContext()
     */
    public List<String> getEndpointForProviderURL(String providerURLString) {
  if (providerURLString != null) {
      try {
    final IiopUrl providerURL = new IiopUrl(providerURLString);
    final List<String> newList = getAddressPortList(providerURL);
    warnLog( "no.endpoints.selected.provider", providerURLString );
                return newList ;
      } catch (MalformedURLException me) {
    warnLog( "provider.exception", me.getMessage(),
View Full Code Here

    private List<String> getAddressPortList(List<String> hostPortList) {
        // The list is assumed to contain <HOST NAME>:<PORT> values
        List<String> addressPortVector = new ArrayList<String>();
        for (String str : hostPortList) {
            try {
                IiopUrl url = new IiopUrl("iiop://" + str);
                List<String> apList = getAddressPortList(url);
                addressPortVector.addAll(apList);
            } catch (MalformedURLException me) {
                warnLog( "bad.host.port", str, me.getMessage() );
            }
View Full Code Here

     * SerialInitContextFactory.getInitialContext()
     */
    public List<String> getEndpointForProviderURL(String providerURLString) {
        if (providerURLString != null) {
            try {
                final IiopUrl providerURL = new IiopUrl(providerURLString);
                final List<String> newList = getAddressPortList(providerURL);
                logger.log(Level.WARNING, NO_ENDPOINTS_SELECTED_PROVIDER, providerURLString);
                return newList;
            } catch (MalformedURLException me) {
                logger.log(Level.WARNING, PROVIDER_EXCEPTION, new Object[]{me, providerURLString});
View Full Code Here

     * SerialInitContextFactory.getInitialContext()
     */
    public List<String> getEndpointForProviderURL(String providerURLString) {
        if (providerURLString != null) {
            try {
                final IiopUrl providerURL = new IiopUrl(providerURLString);
                final List<String> newList = getAddressPortList(providerURL);
                logger.log(Level.WARNING, NO_ENDPOINTS_SELECTED_PROVIDER, providerURLString);
                return newList;
            } catch (MalformedURLException me) {
                logger.log(Level.WARNING, PROVIDER_EXCEPTION, new Object[]{me, providerURLString});
View Full Code Here

     * SerialInitContextFactory.getInitialContext()
     */
    public List<String> getEndpointForProviderURL(String providerURLString) {
        if (providerURLString != null) {
            try {
                final IiopUrl providerURL = new IiopUrl(providerURLString);
                final List<String> newList = getAddressPortList(providerURL);
                logger.log(Level.WARNING, NO_ENDPOINTS_SELECTED_PROVIDER, providerURLString);
                return newList;
            } catch (MalformedURLException me) {
                logger.log(Level.WARNING, PROVIDER_EXCEPTION, new Object[]{me, providerURLString});
View Full Code Here

TOP

Related Classes of com.sun.jndi.cosnaming.IiopUrl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.