javax.xml.rpc

Interface Stub

public interface Stub

Represents the base interface for stub classes.

Field Summary

static String
ENDPOINT_ADDRESS_PROPERTY
static String
PASSWORD_PROPERTY
static String
SESSION_MAINTAIN_PROPERTY
static String
USERNAME_PROPERTY

Method Summary

Object
_getProperty(String name)
Gets a named configuration property.
Iterator<E>
_getPropertyNames()
Returns an iterator of the properties for the stub.
void
_setProperty(String name, Object value)
Sets a named configuration property.

Field Details

ENDPOINT_ADDRESS_PROPERTY

public static final String ENDPOINT_ADDRESS_PROPERTY
Field Value:
"javax.xml.rpc.service.endpoint.address"
Usages and Demos :

View More Examples of Stub.ENDPOINT_ADDRESS_PROPERTY
   1:             Stub stub = createProxy();
   2:             stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, 
   3:             HelloIF hello = (HelloIF)stub;
   4:             System.out.println(hello.sayHello("hellking!"));
   5:         } catch (Exception ex) {

View Full Code Here
   1:             Stub stub = createProxy();
   2:             stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, 
   3:             AccountIF account = (AccountIF)stub;
   4:             Account a=new Account(20,new Float(23.3f),"helking","13123");
   5:             Account result=(Account)account.echoAccount(a);

View Full Code Here
   1:             (Stub)(new PricerService_Impl().getPricerInterfacePort());
   2:         stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,
   3:                           serviceEndpointAddress);
   4:         return (PricerInterface)stub;

View Full Code Here
   1:             stub._setProperty(
   2:                 javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,
   3:                 endpoint);
   4:             result = stub.getPriceList();
   5:         } catch (Exception ex) {

View Full Code Here
   1:             Stub stub = createProxy();
   2:             stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, 
   3:                 args[0]); 
   4:             HelloIF hello = (HelloIF)stub;
   5:             System.out.println(hello.sayHello("Duke!"));

View Full Code Here

PASSWORD_PROPERTY

public static final String PASSWORD_PROPERTY
Field Value:
"javax.xml.rpc.security.auth.password"
Usages and Demos :

View More Examples of Stub.PASSWORD_PROPERTY
   1:             stub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, username);
   2:             stub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, password); 
   3:             stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, endpointAddress);   
   4:             HelloIF hello = (HelloIF)stub;
   5:             System.out.println(hello.sayHello("Duke! I feel secure!"));

View Full Code Here
   1:                 username);
   2:             stub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,
   3:                 password);
   4:             stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,
   5:                 endpointAddress);

View Full Code Here
   1:            this.properties.put( Stub.USERNAME_PROPERTY, value );
   2:        }else if( name.equals( Stub.PASSWORD_PROPERTY ) ) {
   3:                       if( !( value instanceof String ) ) {
   4:         ...
   5:            }
   6:            this.properties.put( Stub.PASSWORD_PROPERTY, value );
   7:        }else if( name.equals( Stub.ENDPOINT_ADDRESS_PROPERTY ) ) {
   8:                       if( !( value instanceof String ) ) {
   9:                throw new JAXRPCException( Message.getMessage( "ERR_ClientProxy_invalidPropValueType", java.lang.String.class.getName(), value.getClass().getName() ) );

View Full Code Here
   1:       standardProperties.add(Stub.USERNAME_PROPERTY);
   2:       standardProperties.add(Stub.PASSWORD_PROPERTY);
   3:    }
   4:    
   5:    private static final Map<String,String> legacyPropertyMap = new HashMap<String,String>();

View Full Code Here
   1:       stub._setProperty(Stub.USERNAME_PROPERTY, USERNAME);
   2:       stub._setProperty(Stub.PASSWORD_PROPERTY, PASSWORD);
   3: 
   4:         ...
   5:       stub._setProperty(Stub.USERNAME_PROPERTY, USERNAME);
   6:       stub._setProperty(Stub.PASSWORD_PROPERTY, PASSWORD);
   7: 
   8:       String info = port.getContactInfo("mafia");
   9:       assertEquals("The 'mafia' boss is currently out of office, please call again.", info);

View Full Code Here

SESSION_MAINTAIN_PROPERTY

public static final String SESSION_MAINTAIN_PROPERTY
Field Value:
"javax.xml.rpc.session.maintain"
Usages and Demos :

View More Examples of Stub.SESSION_MAINTAIN_PROPERTY
   1:            this.properties.put( Stub.ENDPOINT_ADDRESS_PROPERTY, value );
   2:        }else if( name.equals( Stub.SESSION_MAINTAIN_PROPERTY ) ) {
   3:                       if( !( value instanceof Boolean ) ) {
   4:         ...
   5:            }
   6:            this.properties.put( Stub.SESSION_MAINTAIN_PROPERTY, value );
   7:        }else{
   8:                       throw new JAXRPCException( Message.getMessage( "ERR_ClientProxy_unsupportedProp" ) );
   9:        }

View Full Code Here
   1:       standardProperties.add(Stub.ENDPOINT_ADDRESS_PROPERTY);
   2:       standardProperties.add(Stub.SESSION_MAINTAIN_PROPERTY);
   3:       standardProperties.add(Stub.USERNAME_PROPERTY);
   4:       standardProperties.add(Stub.PASSWORD_PROPERTY);
   5:    }

View Full Code Here
   1:             !name.equals(Stub.USERNAME_PROPERTY) &&
   2:             !name.equals(Stub.SESSION_MAINTAIN_PROPERTY) &&
   3:             !name.equals(Operation.SOAPACTION_URI_PROPERTY))
   4:         ...
   5: 
   6:         String useSession = getProperty(Stub.SESSION_MAINTAIN_PROPERTY);
   7:         if (useSession != null && useSession.toLowerCase().equals("true")) {
   8:         ...
   9: 
  10:             String useSession = getProperty(Stub.SESSION_MAINTAIN_PROPERTY);
  11:             if (useSession != null && useSession.toLowerCase().equals("true"))

View Full Code Here
   1:         if (this.maintainSession) {
   2:             stub._setProperty(Stub.SESSION_MAINTAIN_PROPERTY, new Boolean(this.maintainSession));
   3:         }
   4:         if (this.customProperties != null) {
   5:             Enumeration en = this.customProperties.propertyNames();

View Full Code Here
   1:       standardProperties.add(Stub.ENDPOINT_ADDRESS_PROPERTY);
   2:       standardProperties.add(Stub.SESSION_MAINTAIN_PROPERTY);
   3:       standardProperties.add(Stub.USERNAME_PROPERTY);
   4:         ...
   5:    {
   6:       Object bool = getRequestContext().get(Stub.SESSION_MAINTAIN_PROPERTY);
   7:       return Boolean.TRUE.equals(bool);
   8:    }
   9: }

View Full Code Here

USERNAME_PROPERTY

public static final String USERNAME_PROPERTY
Field Value:
"javax.xml.rpc.security.auth.username"
Usages and Demos :

View More Examples of Stub.USERNAME_PROPERTY
   1:             System.setProperty("javax.net.ssl.trustStorePassword", trustStorePassword);
   2:             stub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, username);
   3:             stub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, password); 
   4:             stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, endpointAddress);   
   5:             HelloIF hello = (HelloIF)stub;

View Full Code Here
   1: 
   2:             stub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,
   3:                 username);
   4:             stub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,
   5:                 password);

View Full Code Here
   1:            throw new JAXRPCException( Message.getMessage( "ERR_ClientProxy_invalidPropValue" ) );
   2:        }else if( name.equals( Stub.USERNAME_PROPERTY ) ) {
   3:                       if( !( value instanceof String ) ) {
   4:         ...
   5:            }
   6:            this.properties.put( Stub.USERNAME_PROPERTY, value );
   7:        }else if( name.equals( Stub.PASSWORD_PROPERTY ) ) {
   8:                       if( !( value instanceof String ) ) {
   9:                throw new JAXRPCException( Message.getMessage( "ERR_ClientProxy_invalidPropValueType", java.lang.String.class.getName(), value.getClass().getName() ) );

View Full Code Here
   1:       standardProperties.add(Stub.SESSION_MAINTAIN_PROPERTY);
   2:       standardProperties.add(Stub.USERNAME_PROPERTY);
   3:       standardProperties.add(Stub.PASSWORD_PROPERTY);
   4:    }
   5:    

View Full Code Here
   1:       Stub stub = (Stub)port;
   2:       stub._setProperty(Stub.USERNAME_PROPERTY, USERNAME);
   3:       stub._setProperty(Stub.PASSWORD_PROPERTY, PASSWORD);
   4:         ...
   5:       Stub stub = (Stub)port;
   6:       stub._setProperty(Stub.USERNAME_PROPERTY, USERNAME);
   7:       stub._setProperty(Stub.PASSWORD_PROPERTY, PASSWORD);
   8: 
   9:       String info = port.getContactInfo("mafia");

View Full Code Here

Method Details

_getProperty

public Object _getProperty(String name)
            throws JAXRPCException
Gets a named configuration property.

_getPropertyNames

public Iterator<E> _getPropertyNames()
Returns an iterator of the properties for the stub.

_setProperty

public void _setProperty(String name,
                         Object value)
            throws JAXRPCException
Sets a named configuration property.
Usages and Demos :

View More Examples of _setProperty(String name,Object value)
   1: 
   2: import javax.xml.rpc.Stub;
   3: 
   4:         ...
   5:         try {
   6:             Stub stub = createProxy();
   7:             System.setProperty("javax.net.ssl.trustStore",
   8:         ...
   9:             System.setProperty("javax.net.ssl.trustStorePassword", trustStorePassword);
  10:             stub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, username);
  11:         ...
  12:             stub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, password); 

View Full Code Here
   1: 
   2: import javax.xml.rpc.Stub;
   3: import javax.xml.ws.addressing.AddressingBuilder;
   4:         ...
   5: 
   6:    public static void setTargetAddress(Stub stub, String url)
   7:    {
   8:         ...
   9:       stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, url);
  10:    }

View Full Code Here
   1: import javax.xml.rpc.Service;
   2: import javax.xml.rpc.Stub;
   3: 
   4:         ...
   5: 
   6:       Stub stub = (Stub)port;
   7:         ...
   8:       stub._setProperty(Stub.USERNAME_PROPERTY, USERNAME);
   9:         ...
  10:       stub._setProperty(Stub.PASSWORD_PROPERTY, PASSWORD);

View Full Code Here
   1: import javax.xml.rpc.Service;
   2: import javax.xml.rpc.Stub;
   3: 
   4:         ...
   5: 
   6:       Stub stub = (Stub)port;
   7:         ...
   8:       stub._setProperty(Stub.USERNAME_PROPERTY, USERNAME);
   9:         ...
  10:       stub._setProperty(Stub.PASSWORD_PROPERTY, PASSWORD);

View Full Code Here
   1: import javax.xml.namespace.QName;
   2: import javax.xml.rpc.Stub;
   3: import javax.xml.ws.BindingProvider;
   4:         ...
   5: 
   6:    public static void setSubscriptionId(Stub stub, URI identifier)
   7:    {
   8:         ...
   9:       stub._setProperty("subscriptionId", identifier);
  10:    }
  11:         ...
  12:    {
  13:       stub._setProperty("wsa:expectedReplyAction", expectedAction);

View Full Code Here