Package net.yacy.upnp

Examples of net.yacy.upnp.JXPathParser


    return UPNPServiceStateVariables.keySet().size();
  }

  private void parseSCPD() {
    try {
      DocumentContainer.registerXMLParser( DocumentContainer.MODEL_DOM, new JXPathParser() );
      UPNPService = new DocumentContainer( SCPDURL, DocumentContainer.MODEL_DOM );
      JXPathContext context = JXPathContext.newContext( this );
      context.registerNamespace("scpdns", "urn:schemas-upnp-org:service-1-0");
      Pointer rootPtr = context.getPointer( "UPNPService/scpdns:scpd" );
      JXPathContext rootCtx = context.getRelativeContext( rootPtr );
View Full Code Here


   * @throws MalformedURLException if the location URL is invalid and cannot be used to populate this root object and its child devices
   *         IllegalStateException if the device has an unsupported version, currently only version 1.0 is supported
   */
  public UPNPRootDevice( URL deviceDefLoc, String maxAge ) throws MalformedURLException, IllegalStateException {
    this.deviceDefLoc = deviceDefLoc;
    DocumentContainer.registerXMLParser( DocumentContainer.MODEL_DOM, new JXPathParser() );
    UPNPDevice = new DocumentContainer( deviceDefLoc, DocumentContainer.MODEL_DOM );
    validityTime = Integer.parseInt( maxAge ) * 1000;
    creationTime = System.currentTimeMillis();
  
    JXPathContext context = JXPathContext.newContext( this );
View Full Code Here

TOP

Related Classes of net.yacy.upnp.JXPathParser

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.