百草园 v7.5版本的 MD5 值为:17f49811374a404d232d5b2cc35bf30f
以下内容为反编译后的 C0097bh.java 源代码,内容仅作参考
package com.baidu.cyberplayer.utils;
import java.io.File;
public class C0097bh extends C0063aa {
private C0093bd a;
private C0094be f503a;
public C0097bh() {
try {
a("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root xmlns=\"urn:schemas-upnp-org:device-1-0\">\n <specVersion>\n <major>1</major>\n <minor>0</minor>\n </specVersion>\n <device>\n <deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType>\n <friendlyName>Cyber Garage Media Server</friendlyName>\n <manufacturer>Cyber Garage</manufacturer>\n <manufacturerURL>http://www.cybergarage.org</manufacturerURL>\n <modelDescription>Provides content through UPnP ContentDirectory service</modelDescription>\n <modelName>Cyber Garage Media Server</modelName>\n <modelNumber>1.0</modelNumber>\n <modelURL>http://www.cybergarage.org</modelURL>\n <serviceList>\n <service>\n <serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</serviceType>\n <serviceId>urn:upnp-org:serviceId:urn:schemas-upnp-org:service:ContentDirectory</serviceId>\n <SCPDURL>/service/ContentDirectory1.xml</SCPDURL>\n <controlURL>/service/ContentDirectory_control</controlURL>\n <eventSubURL>/service/ContentDirectory_event</eventSubURL>\n </service>\n <service>\n <serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType>\n <serviceId>urn:upnp-org:serviceId:urn:schemas-upnp-org:service:ConnectionManager</serviceId>\n <SCPDURL>/service/ConnectionManager1.xml</SCPDURL>\n <controlURL>/service/ConnectionManager_control</controlURL>\n <eventSubURL>/service/ConnectionManager_event</eventSubURL>\n </service>\n </serviceList>\n </device>\n</root>", "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<scpd xmlns=\"urn:schemas-upnp-org:service-1-0\">\n <specVersion>\n <major>1</major>\n <minor>0</minor>\n </specVersion>\n <actionList>\n <action>\n <name>ExportResource</name>\n <argumentList>\n <argument>\n <name>SourceURI</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_URI</relatedStateVariable>\n </argument>\n <argument>\n <name>DestinationURI</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_URI</relatedStateVariable>\n </argument>\n <argument>\n <name>TransferID</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_TransferID</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>StopTransferResource</name>\n <argumentList>\n <argument>\n <name>TransferID</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_TransferID</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>DestroyObject</name>\n <argumentList>\n <argument>\n <name>ObjectID</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>DeleteResource</name>\n <argumentList>\n <argument>\n <name>ResourceURI</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_URI</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>UpdateObject</name>\n <argumentList>\n <argument>\n <name>ObjectID</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>\n </argument>\n <argument>\n <name>CurrentTagValue</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_TagValueList</relatedStateVariable>\n </argument>\n <argument>\n <name>NewTagValue</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_TagValueList</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>Browse</name>\n <argumentList>\n <argument>\n <name>ObjectID</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>\n </argument>\n <argument>\n <name>BrowseFlag</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_BrowseFlag</relatedStateVariable>\n </argument>\n <argument>\n <name>Filter</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_Filter</relatedStateVariable>\n </argument>\n <argument>\n <name>StartingIndex</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_Index</relatedStateVariable>\n </argument>\n <argument>\n <name>RequestedCount</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable>\n </argument>\n <argument>\n <name>SortCriteria</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_SortCriteria</relatedStateVariable>\n </argument>\n <argument>\n <name>Result</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_Result</relatedStateVariable>\n </argument>\n <argument>\n <name>NumberReturned</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable>\n </argument>\n <argument>\n <name>TotalMatches</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable>\n </argument>\n <argument>\n <name>UpdateID</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_UpdateID</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>GetTransferProgress</name>\n <argumentList>\n <argument>\n <name>TransferID</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_TransferID</relatedStateVariable>\n </argument>\n <argument>\n <name>TransferStatus</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_TransferStatus</relatedStateVariable>\n </argument>\n <argument>\n <name>TransferLength</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_TransferLength</relatedStateVariable>\n </argument>\n <argument>\n <name>TransferTotal</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_TransferTotal</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>GetSearchCapabilities</name>\n <argumentList>\n <argument>\n <name>SearchCaps</name>\n <direction>out</direction>\n <relatedStateVariable>SearchCapabilities</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>CreateObject</name>\n <argumentList>\n <argument>\n <name>ContainerID</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>\n </argument>\n <argument>\n <name>Elements</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_Result</relatedStateVariable>\n </argument>\n <argument>\n <name>ObjectID</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>\n </argument>\n <argument>\n <name>Result</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_Result</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>Search</name>\n <argumentList>\n <argument>\n <name>ContainerID</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>\n </argument>\n <argument>\n <name>SearchCriteria</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_SearchCriteria</relatedStateVariable>\n </argument>\n <argument>\n <name>Filter</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_Filter</relatedStateVariable>\n </argument>\n <argument>\n <name>StartingIndex</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_Index</relatedStateVariable>\n </argument>\n <argument>\n <name>RequestedCount</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable>\n </argument>\n <argument>\n <name>SortCriteria</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_SortCriteria</relatedStateVariable>\n </argument>\n <argument>\n <name>Result</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_Result</relatedStateVariable>\n </argument>\n <argument>\n <name>NumberReturned</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable>\n </argument>\n <argument>\n <name>TotalMatches</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable>\n </argument>\n <argument>\n <name>UpdateID</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_UpdateID</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>GetSortCapabilities</name>\n <argumentList>\n <argument>\n <name>SortCaps</name>\n <direction>out</direction>\n <relatedStateVariable>SortCapabilities</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>ImportResource</name>\n <argumentList>\n <argument>\n <name>SourceURI</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_URI</relatedStateVariable>\n </argument>\n <argument>\n <name>DestinationURI</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_URI</relatedStateVariable>\n </argument>\n <argument>\n <name>TransferID</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_TransferID</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>CreateReference</name>\n <argumentList>\n <argument>\n <name>ContainerID</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>\n </argument>\n <argument>\n <name>ObjectID</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>\n </argument>\n <argument>\n <name>NewID</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>GetSystemUpdateID</name>\n <argumentList>\n <argument>\n <name>Id</name>\n <direction>out</direction>\n <relatedStateVariable>SystemUpdateID</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n </actionList>\n <serviceStateTable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_SortCriteria</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_TransferLength</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"yes\">\n <name>TransferIDs</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_UpdateID</name>\n <dataType>ui4</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_SearchCriteria</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_Filter</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"yes\">\n <name>ContainerUpdateIDs</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_Result</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_Index</name>\n <dataType>ui4</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_TransferID</name>\n <dataType>ui4</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_TagValueList</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_URI</name>\n <dataType>uri</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_ObjectID</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>SortCapabilities</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>SearchCapabilities</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_Count</name>\n <dataType>ui4</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_BrowseFlag</name>\n <dataType>string</dataType>\n <allowedValueList>\n <allowedValue>BrowseMetadata</allowedValue>\n <allowedValue>BrowseDirectChildren</allowedValue>\n </allowedValueList>\n </stateVariable>\n <stateVariable sendEvents=\"yes\">\n <name>SystemUpdateID</name>\n <dataType>ui4</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_TransferStatus</name>\n <dataType>string</dataType>\n <allowedValueList>\n <allowedValue>COMPLETED</allowedValue>\n <allowedValue>ERROR</allowedValue>\n <allowedValue>IN_PROGRESS</allowedValue>\n <allowedValue>STOPPED</allowedValue>\n </allowedValueList>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_TransferTotal</name>\n <dataType>string</dataType>\n </stateVariable>\n </serviceStateTable>\n</scpd>", "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<scpd xmlns=\"urn:schemas-upnp-org:service-1-0\">\n <specVersion>\n <major>1</major>\n <minor>0</minor>\n\t</specVersion>\n\t<actionList>\n\t\t<action>\n <name>GetCurrentConnectionInfo</name>\n <argumentList>\n <argument>\n <name>ConnectionID</name>\n <direction>in</direction>\n <relatedStateVariable>A_ARG_TYPE_ConnectionID</relatedStateVariable>\n </argument>\n <argument>\n <name>RcsID</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_RcsID</relatedStateVariable>\n </argument>\n <argument>\n <name>AVTransportID</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_AVTransportID</relatedStateVariable>\n </argument>\n <argument>\n <name>ProtocolInfo</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_ProtocolInfo</relatedStateVariable>\n </argument>\n <argument>\n <name>PeerConnectionManager</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_ConnectionManager</relatedStateVariable>\n </argument>\n <argument>\n <name>PeerConnectionID</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_ConnectionID</relatedStateVariable>\n </argument>\n <argument>\n <name>Direction</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_Direction</relatedStateVariable>\n </argument>\n <argument>\n <name>Status</name>\n <direction>out</direction>\n <relatedStateVariable>A_ARG_TYPE_ConnectionStatus</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>GetProtocolInfo</name>\n <argumentList>\n <argument>\n <name>Source</name>\n <direction>out</direction>\n <relatedStateVariable>SourceProtocolInfo</relatedStateVariable>\n </argument>\n <argument>\n <name>Sink</name>\n <direction>out</direction>\n <relatedStateVariable>SinkProtocolInfo</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n <action>\n <name>GetCurrentConnectionIDs</name>\n <argumentList>\n <argument>\n <name>ConnectionIDs</name>\n <direction>out</direction>\n <relatedStateVariable>CurrentConnectionIDs</relatedStateVariable>\n </argument>\n </argumentList>\n </action>\n </actionList>\n <serviceStateTable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_ProtocolInfo</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_ConnectionStatus</name>\n <dataType>string</dataType>\n <allowedValueList>\n <allowedValue>OK</allowedValue>\n <allowedValue>ContentFormatMismatch</allowedValue>\n <allowedValue>InsufficientBandwidth</allowedValue>\n <allowedValue>UnreliableChannel</allowedValue>\n <allowedValue>Unknown</allowedValue>\n </allowedValueList>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_AVTransportID</name>\n <dataType>i4</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_RcsID</name>\n <dataType>i4</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_ConnectionID</name>\n <dataType>i4</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_ConnectionManager</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"yes\">\n <name>SourceProtocolInfo</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"yes\">\n <name>SinkProtocolInfo</name>\n <dataType>string</dataType>\n </stateVariable>\n <stateVariable sendEvents=\"no\">\n <name>A_ARG_TYPE_Direction</name>\n <dataType>string</dataType>\n <allowedValueList>\n <allowedValue>Input</allowedValue>\n <allowedValue>Output</allowedValue>\n </allowedValueList>\n </stateVariable>\n <stateVariable sendEvents=\"yes\">\n <name>CurrentConnectionIDs</name>\n <dataType>string</dataType>\n </stateVariable>\n </serviceStateTable>\n</scpd>");
} catch (C0083au e) {
e.printStackTrace();
throw new RuntimeException("load local description failed");
}
}
private void a(String str, String str2, String str3) {
a(str);
a("urn:schemas-upnp-org:service:ContentDirectory:1").d(str2);
a("urn:schemas-upnp-org:service:ConnectionManager:1").d(str3);
d();
}
private void d() {
C0069ag.m416a(9);
b(38520);
this.f503a = new C0094be(this);
this.a = new C0093bd(this);
C0065ac a = a("urn:schemas-upnp-org:service:ContentDirectory:1");
a.a((InterfaceC0071ai) m471a());
a.a((InterfaceC0076an) m471a());
C0065ac a2 = a("urn:schemas-upnp-org:service:ConnectionManager:1");
a2.a((InterfaceC0071ai) a());
a2.a((InterfaceC0076an) a());
}
public C0093bd a() {
return this.a;
}
public C0094be m471a() {
return this.f503a;
}
public String a(File file) {
return m471a().m463a(file);
}
@Override
public void a(G g) {
String j = g.j();
ca.a("uri = " + j);
if (j.startsWith("/ExportContent")) {
m471a().a(g);
} else {
super.a(g);
}
}
public void a(AbstractC0095bf abstractC0095bf) {
m471a().a(abstractC0095bf);
}
@Override
public boolean mo381f() {
m471a().b();
super.mo381f();
return true;
}
protected void finalize() {
mo382g();
}
@Override
public boolean mo382g() {
m471a().c();
super.mo382g();
return true;
}
@Override
public String i() {
return Q.m253a();
}
}