Packages that use Service
Package
Description
Transport framework: the transport lifecycle and pool management, connection handling and bandwidth throttling for the transports (NTCP2 over TCP, SSU over UDP) that carry I2P messages between routers, plus NAT traversal via UPnP and GeoIP country lookups.
Core UPnP device, service and root-device model of the Cybergarage stack.
UPnP control actions and subscription messages of the Cybergarage stack.
UPnP GENA eventing of the Cybergarage stack.
Uses of Service in net.i2p.router.transport
Fields in net.i2p.router.transport declared as ServiceModifier and TypeFieldDescriptionprivate ServiceUPnP._lastServiceService of the last failed action, for the log.private ServiceUPnP._serviceThe IPv4 port mapping service in use.private ServiceUPnP._service6The IPv6 firewall service, if found.Methods in net.i2p.router.transport that return types with arguments of type ServiceModifier and TypeMethodDescriptionUPnP.discoverService(Device router) Traverses the structure of the router device looking for the port mapping service.Methods in net.i2p.router.transport with parameters of type ServiceModifier and TypeMethodDescriptionprivate booleanUPnP.addMappingV4(Service service, String protocol, int port, String description, ForwardPort fp) This always requests that the external port == the internal port, for now.private booleanUPnP.addMappingV6(Service service, int port, UPnP.IPv6ForwardPort fp) This always requests that the external port == the internal port, for now.private StringUPnP.getNATAddress(Service service) Queries the external IPv4 address, blocking on the control action.private static voidUPnP.listActions(Service service, StringBuilder sb) Append all actions of the service as an HTML list to the buffer; for debug output only.private static voidUPnP.listStateTable(Service serv, StringBuilder sb) Append the service state table HTML to the buffer; for debug output only.private booleanUPnP.removeMappingV4(Service service, String protocol, int port, ForwardPort fp, boolean noLog) Removes an IPv4 port mapping.private booleanUPnP.removeMappingV6(Service service, String protocol, int port, UPnP.IPv6ForwardPort fp, boolean noLog) Removes an IPv6 port mapping.private StringFetch a UPnP service status variable as a boolean.private StringFetch a UPnP service status variable as a number.private StringFormats a failed action for the log.private StringFetch a UPnP service status variable as a duration.Uses of Service in org.cybergarage.upnp
Subclasses with type arguments of type Service in org.cybergarage.upnpMethods in org.cybergarage.upnp that return ServiceModifier and TypeMethodDescriptionAction.getService()Gets the service this action belongs to.Argument.getService()Gets the service this argument belongs to.Device.getService(String name) Finds a service of this or an embedded device by type or ID.ServiceList.getService(int n) Return the service held at the given position in the list.StateVariable.getService()Gets the service that owns this state variable.Device.getServiceByControlURL(String searchUrl) Finds a service by its control URL.Device.getServiceByEventSubURL(String searchUrl) Finds a service by its event subscription URL.Device.getServiceBySCPDURL(String searchUrl) Finds a service by its service control description (SCPD) URL.ControlPoint.getSubscriberService(String uuid) Find the service holding a subscription.Device.getSubscriberService(String uuid) Finds the service a subscriber holds a subscription on.Methods in org.cybergarage.upnp with parameters of type ServiceModifier and TypeMethodDescriptionvoidDevice.addService(Service s) Add a Service to device without checking for duplicate or syntax errorprivate voidDevice.deviceActionControlRecieved(ActionRequest ctlReq, Service service) Runs an action on the target service.private voidDevice.deviceControlRequestRecieved(ControlRequest ctlReq, Service service) Dispatches a control request to the right service.private voidDevice.deviceEventNewSubscriptionRecieved(Service service, SubscriptionRequest subReq) Creates a new event subscription.private voidDevice.deviceEventRenewSubscriptionRecieved(Service service, SubscriptionRequest subReq) Renews an existing event subscription.private voidDevice.deviceEventUnsubscriptionRecieved(Service service, SubscriptionRequest subReq) Cancels an event subscription.private voidDevice.deviceQueryControlRecieved(QueryRequest ctlReq, Service service) Answers a state variable query.booleanControlPoint.isSubscribed(Service service) Check whether this control point holds a subscription to a service.(package private) voidAction.setService(Service s) Sets the service this action belongs to.(package private) voidArgument.setService(Service s) Sets the service this argument belongs to.booleanSubscribe to a service with an infinite lifetime.booleanSubscribe to a service, renewing an existing subscription if there is one.booleanRenew an existing subscription to a service with an infinite lifetime.booleanRenew an existing subscription to a service.booleanControlPoint.unsubscribe(Service service) Cancel a subscription to a service.Uses of Service in org.cybergarage.upnp.control
Methods in org.cybergarage.upnp.control with parameters of type ServiceModifier and TypeMethodDescriptionprivate NodeActionRequest.createContentNode(Service service, Action action, ArgumentList argList) Creates the response content node for one action.protected voidControlRequest.setRequestHost(Service service) Sets the request host and port for the specified service.Uses of Service in org.cybergarage.upnp.event
Methods in org.cybergarage.upnp.event with parameters of type ServiceModifier and TypeMethodDescriptionvoidSubscriptionRequest.setRenewRequest(Service service, String uuid, long timeout) Turn this request into a renewal of an existing subscription.private voidSubscriptionRequest.setService(Service service) Sets the service the subscription targets.voidSubscriptionRequest.setSubscribeRequest(Service service, String callback, long timeout) Turn this request into an initial SUBSCRIBE for the given service.voidSubscriptionRequest.setUnsubscribeRequest(Service service) Turn this request into an UNSUBSCRIBE, using the service's current subscription ID.