├── VoiceChat_Client ├── build.xml ├── manifest.mf ├── nbproject │ ├── build-impl.xml │ ├── genfiles.properties │ ├── private │ │ ├── config.properties │ │ ├── private.properties │ │ └── private.xml │ ├── project.properties │ └── project.xml └── src │ ├── AudioChannel.java │ ├── Client.java │ ├── ErrorMessage.java │ ├── GUI.form │ ├── GUI.java │ ├── Message.java │ ├── MicThread.java │ ├── SoundPacket.java │ └── Utils.java └── VoiceChat_Server ├── build.xml ├── lib ├── META-INF │ ├── MANIFEST.MF │ └── maven │ │ └── org.teleal │ │ └── teleal-common │ │ ├── pom.properties │ │ └── pom.xml ├── cling-core-1.0.5.jar ├── cling-support-1.0.5.jar ├── com │ └── sun │ │ └── tools │ │ └── javadoc │ │ └── PublicMessager.class ├── org │ └── teleal │ │ └── common │ │ ├── http │ │ ├── CacheControl.class │ │ ├── Headers.class │ │ ├── HttpFetch$1.class │ │ ├── HttpFetch$2.class │ │ ├── HttpFetch$3.class │ │ ├── HttpFetch$RepresentationFactory.class │ │ ├── HttpFetch.class │ │ ├── Query.class │ │ ├── Representation.class │ │ └── RequestInfo.class │ │ ├── io │ │ ├── IO$FileFinder.class │ │ └── IO.class │ │ ├── jdoc │ │ ├── EasyDoclet$LogWriter.class │ │ └── EasyDoclet.class │ │ ├── logging │ │ ├── LoggingUtil.class │ │ ├── SystemOutLoggingHandler$SimpleFormatter.class │ │ └── SystemOutLoggingHandler.class │ │ ├── mock │ │ └── http │ │ │ ├── DelegatingServletInputStream.class │ │ │ ├── DelegatingServletOutputStream.class │ │ │ ├── HeaderValueHolder.class │ │ │ ├── IteratorEnumeration.class │ │ │ ├── MockHttpServletRequest$1.class │ │ │ ├── MockHttpServletRequest.class │ │ │ ├── MockHttpServletResponse$ResponsePrintWriter.class │ │ │ ├── MockHttpServletResponse$ResponseServletOutputStream.class │ │ │ ├── MockHttpServletResponse.class │ │ │ ├── MockHttpSession.class │ │ │ ├── MockRequestDispatcher.class │ │ │ └── MockServletContext.class │ │ ├── schemas │ │ ├── xhtml1-strict.xsd │ │ └── xml.xsd │ │ ├── statemachine │ │ ├── StateMachine.class │ │ ├── StateMachineBuilder.class │ │ ├── StateMachineInvocationHandler.class │ │ ├── States.class │ │ └── TransitionException.class │ │ ├── swingfwk │ │ ├── AbstractController.class │ │ ├── ActionButton$1.class │ │ ├── ActionButton.class │ │ ├── Application.class │ │ ├── BeanTableModel.class │ │ ├── ClosableTabbedPane$CloseTabIcon.class │ │ ├── ClosableTabbedPane$CloseableMetalTabbedPaneUI.class │ │ ├── ClosableTabbedPane$CloseableTabbedPaneUI.class │ │ ├── ClosableTabbedPane.class │ │ ├── ClosableTabbedPaneListener.class │ │ ├── Controller.class │ │ ├── DefaultAction.class │ │ ├── DefaultEvent.class │ │ ├── DefaultEventListener.class │ │ ├── Event.class │ │ ├── EventListener.class │ │ ├── Form.class │ │ ├── JPopupMenuButton$1.class │ │ ├── JPopupMenuButton.class │ │ ├── Node.class │ │ ├── NodeTreeModel.class │ │ └── logging │ │ │ ├── LogCategory$Group.class │ │ │ ├── LogCategory$LoggerLevel.class │ │ │ ├── LogCategory.class │ │ │ ├── LogCategorySelector$1.class │ │ │ ├── LogCategorySelector$2.class │ │ │ ├── LogCategorySelector$3.class │ │ │ ├── LogCategorySelector.class │ │ │ ├── LogController$1.class │ │ │ ├── LogController$2.class │ │ │ ├── LogController$3.class │ │ │ ├── LogController$4.class │ │ │ ├── LogController$5.class │ │ │ ├── LogController$6.class │ │ │ ├── LogController$7.class │ │ │ ├── LogController$8.class │ │ │ ├── LogController$9.class │ │ │ ├── LogController$Expiration.class │ │ │ ├── LogController.class │ │ │ ├── LogMessage.class │ │ │ ├── LogTableCellRenderer.class │ │ │ ├── LogTableModel.class │ │ │ ├── LoggingHandler.class │ │ │ └── img │ │ │ ├── configure.png │ │ │ ├── copyclipboard.png │ │ │ ├── debug.png │ │ │ ├── info.png │ │ │ ├── pause.png │ │ │ ├── removetext.png │ │ │ ├── trace.png │ │ │ ├── viewtext.png │ │ │ └── warn.png │ │ ├── xhtml │ │ ├── Anchor.class │ │ ├── Body.class │ │ ├── Head$1.class │ │ ├── Head$2.class │ │ ├── Head.class │ │ ├── Href.class │ │ ├── Link.class │ │ ├── Meta.class │ │ ├── Option.class │ │ ├── Root$1.class │ │ ├── Root$2.class │ │ ├── Root.class │ │ ├── XHTML$ATTR.class │ │ ├── XHTML$ELEMENT.class │ │ ├── XHTML.class │ │ ├── XHTMLElement$1.class │ │ ├── XHTMLElement$2.class │ │ ├── XHTMLElement.class │ │ ├── XHTMLParser$1.class │ │ ├── XHTMLParser$2.class │ │ └── XHTMLParser.class │ │ └── xml │ │ ├── CatalogResourceResolver$Input.class │ │ ├── CatalogResourceResolver.class │ │ ├── DOM.class │ │ ├── DOMElement$ArrayBuilder.class │ │ ├── DOMElement$Builder.class │ │ ├── DOMElement.class │ │ ├── DOMParser$1.class │ │ ├── DOMParser$2.class │ │ ├── DOMParser$NodeVisitor.class │ │ ├── DOMParser.class │ │ ├── NamespaceContextMap.class │ │ ├── ParserException.class │ │ ├── SAXParser$1.class │ │ ├── SAXParser$Handler.class │ │ ├── SAXParser$SimpleErrorHandler.class │ │ └── SAXParser.class └── teleal-common-1.0.13.jar ├── manifest.mf ├── nbproject ├── build-impl.xml ├── genfiles.properties ├── private │ ├── config.properties │ ├── private.properties │ └── private.xml ├── project.properties └── project.xml └── src ├── ClientConnection.java ├── ErrorMessage.java ├── GUI.form ├── GUI.java ├── Log.java ├── Message.java ├── Server.java ├── SoundPacket.java ├── Utils.java └── org └── teleal ├── cling ├── DefaultUpnpServiceConfiguration.java ├── Main.java ├── UpnpService.java ├── UpnpServiceConfiguration.java ├── UpnpServiceImpl.java ├── binding │ ├── LocalServiceBinder.java │ ├── LocalServiceBindingException.java │ ├── annotations │ │ ├── AnnotationActionBinder.java │ │ ├── AnnotationLocalServiceBinder.java │ │ ├── AnnotationStateVariableBinder.java │ │ ├── UpnpAction.java │ │ ├── UpnpInputArgument.java │ │ ├── UpnpOutputArgument.java │ │ ├── UpnpService.java │ │ ├── UpnpServiceId.java │ │ ├── UpnpServiceType.java │ │ ├── UpnpStateVariable.java │ │ └── UpnpStateVariables.java │ ├── staging │ │ ├── MutableAction.java │ │ ├── MutableActionArgument.java │ │ ├── MutableAllowedValueRange.java │ │ ├── MutableDevice.java │ │ ├── MutableIcon.java │ │ ├── MutableService.java │ │ ├── MutableStateVariable.java │ │ └── MutableUDAVersion.java │ └── xml │ │ ├── Descriptor.java │ │ ├── DescriptorBindingException.java │ │ ├── DeviceDescriptorBinder.java │ │ ├── ServiceDescriptorBinder.java │ │ ├── UDA10DeviceDescriptorBinderImpl.java │ │ ├── UDA10DeviceDescriptorBinderSAXImpl.java │ │ ├── UDA10ServiceDescriptorBinderImpl.java │ │ ├── UDA10ServiceDescriptorBinderSAXImpl.java │ │ └── schema │ │ ├── backup.txt │ │ ├── uda10-device.xsd │ │ ├── uda10-service.xsd │ │ ├── uda11-device.xsd │ │ └── uda11-service.xsd ├── controlpoint │ ├── ActionCallback.java │ ├── ControlPoint.java │ ├── ControlPointImpl.java │ └── SubscriptionCallback.java ├── mock │ └── MockUpnpService.java ├── model │ ├── Command.java │ ├── Constants.java │ ├── DefaultServiceManager.java │ ├── ExpirationDetails.java │ ├── Location.java │ ├── ModelUtil.java │ ├── Namespace.java │ ├── NetworkAddress.java │ ├── ServerClientTokens.java │ ├── ServiceManager.java │ ├── ServiceReference.java │ ├── Validatable.java │ ├── ValidationError.java │ ├── ValidationException.java │ ├── VariableValue.java │ ├── XMLUtil.java │ ├── action │ │ ├── AbstractActionExecutor.java │ │ ├── ActionArgumentValue.java │ │ ├── ActionException.java │ │ ├── ActionExecutor.java │ │ ├── ActionInvocation.java │ │ ├── MethodActionExecutor.java │ │ └── QueryStateVariableExecutor.java │ ├── gena │ │ ├── CancelReason.java │ │ ├── GENASubscription.java │ │ ├── LocalGENASubscription.java │ │ └── RemoteGENASubscription.java │ ├── message │ │ ├── IncomingDatagramMessage.java │ │ ├── OutgoingDatagramMessage.java │ │ ├── StreamRequestMessage.java │ │ ├── StreamResponseMessage.java │ │ ├── UpnpHeaders.java │ │ ├── UpnpMessage.java │ │ ├── UpnpOperation.java │ │ ├── UpnpRequest.java │ │ ├── UpnpResponse.java │ │ ├── control │ │ │ ├── ActionMessage.java │ │ │ ├── ActionRequestMessage.java │ │ │ ├── ActionResponseMessage.java │ │ │ ├── IncomingActionRequestMessage.java │ │ │ ├── IncomingActionResponseMessage.java │ │ │ ├── OutgoingActionRequestMessage.java │ │ │ └── OutgoingActionResponseMessage.java │ │ ├── discovery │ │ │ ├── IncomingNotificationRequest.java │ │ │ ├── IncomingSearchRequest.java │ │ │ ├── IncomingSearchResponse.java │ │ │ ├── OutgoingNotificationRequest.java │ │ │ ├── OutgoingNotificationRequestDeviceType.java │ │ │ ├── OutgoingNotificationRequestRootDevice.java │ │ │ ├── OutgoingNotificationRequestServiceType.java │ │ │ ├── OutgoingNotificationRequestUDN.java │ │ │ ├── OutgoingSearchRequest.java │ │ │ ├── OutgoingSearchResponse.java │ │ │ ├── OutgoingSearchResponseDeviceType.java │ │ │ ├── OutgoingSearchResponseRootDevice.java │ │ │ ├── OutgoingSearchResponseRootDeviceUDN.java │ │ │ ├── OutgoingSearchResponseServiceType.java │ │ │ └── OutgoingSearchResponseUDN.java │ │ ├── gena │ │ │ ├── IncomingEventRequestMessage.java │ │ │ ├── IncomingSubscribeRequestMessage.java │ │ │ ├── IncomingSubscribeResponseMessage.java │ │ │ ├── IncomingUnsubscribeRequestMessage.java │ │ │ ├── OutgoingEventRequestMessage.java │ │ │ ├── OutgoingEventResponseMessage.java │ │ │ ├── OutgoingRenewalRequestMessage.java │ │ │ ├── OutgoingSubscribeRequestMessage.java │ │ │ ├── OutgoingSubscribeResponseMessage.java │ │ │ └── OutgoingUnsubscribeRequestMessage.java │ │ └── header │ │ │ ├── CallbackHeader.java │ │ │ ├── ContentTypeHeader.java │ │ │ ├── DeviceTypeHeader.java │ │ │ ├── DeviceUSNHeader.java │ │ │ ├── EXTHeader.java │ │ │ ├── EventSequenceHeader.java │ │ │ ├── HostHeader.java │ │ │ ├── InterfaceMacHeader.java │ │ │ ├── InvalidHeaderException.java │ │ │ ├── LocationHeader.java │ │ │ ├── MANHeader.java │ │ │ ├── MXHeader.java │ │ │ ├── MaxAgeHeader.java │ │ │ ├── NTEventHeader.java │ │ │ ├── NTSHeader.java │ │ │ ├── RootDeviceHeader.java │ │ │ ├── STAllHeader.java │ │ │ ├── ServerHeader.java │ │ │ ├── ServiceTypeHeader.java │ │ │ ├── ServiceUSNHeader.java │ │ │ ├── SoapActionHeader.java │ │ │ ├── SubscriptionIdHeader.java │ │ │ ├── TimeoutHeader.java │ │ │ ├── UDADeviceTypeHeader.java │ │ │ ├── UDAServiceTypeHeader.java │ │ │ ├── UDNHeader.java │ │ │ ├── USNRootDeviceHeader.java │ │ │ ├── UpnpHeader.java │ │ │ └── UserAgentHeader.java │ ├── meta │ │ ├── Action.java │ │ ├── ActionArgument.java │ │ ├── Device.java │ │ ├── DeviceDetails.java │ │ ├── DeviceIdentity.java │ │ ├── Icon.java │ │ ├── LocalDevice.java │ │ ├── LocalService.java │ │ ├── ManufacturerDetails.java │ │ ├── ModelDetails.java │ │ ├── QueryStateVariableAction.java │ │ ├── RemoteDevice.java │ │ ├── RemoteDeviceIdentity.java │ │ ├── RemoteService.java │ │ ├── Service.java │ │ ├── StateVariable.java │ │ ├── StateVariableAllowedValueRange.java │ │ ├── StateVariableEventDetails.java │ │ ├── StateVariableTypeDetails.java │ │ └── UDAVersion.java │ ├── profile │ │ ├── ControlPointInfo.java │ │ ├── DeviceDetailsProvider.java │ │ └── HeaderDeviceDetailsProvider.java │ ├── resource │ │ ├── DeviceDescriptorResource.java │ │ ├── IconResource.java │ │ ├── Resource.java │ │ ├── ServiceControlResource.java │ │ ├── ServiceDescriptorResource.java │ │ ├── ServiceEventCallbackResource.java │ │ └── ServiceEventSubscriptionResource.java │ ├── state │ │ ├── FieldStateVariableAccessor.java │ │ ├── GetterStateVariableAccessor.java │ │ ├── StateVariableAccessor.java │ │ └── StateVariableValue.java │ └── types │ │ ├── AbstractDatatype.java │ │ ├── Base64Datatype.java │ │ ├── BinHexDatatype.java │ │ ├── BooleanDatatype.java │ │ ├── CharacterDatatype.java │ │ ├── CustomDatatype.java │ │ ├── DLNACaps.java │ │ ├── DLNADoc.java │ │ ├── Datatype.java │ │ ├── DateTimeDatatype.java │ │ ├── DeviceType.java │ │ ├── DoubleDatatype.java │ │ ├── ErrorCode.java │ │ ├── FloatDatatype.java │ │ ├── HostPort.java │ │ ├── IntegerDatatype.java │ │ ├── InvalidValueException.java │ │ ├── NamedDeviceType.java │ │ ├── NamedServiceType.java │ │ ├── NotificationSubtype.java │ │ ├── ServiceId.java │ │ ├── ServiceType.java │ │ ├── ShortDatatype.java │ │ ├── SoapActionType.java │ │ ├── StringDatatype.java │ │ ├── UDADeviceType.java │ │ ├── UDAServiceId.java │ │ ├── UDAServiceType.java │ │ ├── UDN.java │ │ ├── URIDatatype.java │ │ ├── UnsignedIntegerFourBytes.java │ │ ├── UnsignedIntegerFourBytesDatatype.java │ │ ├── UnsignedIntegerOneByte.java │ │ ├── UnsignedIntegerOneByteDatatype.java │ │ ├── UnsignedIntegerTwoBytes.java │ │ ├── UnsignedIntegerTwoBytesDatatype.java │ │ ├── UnsignedVariableInteger.java │ │ └── csv │ │ ├── CSV.java │ │ ├── CSVBoolean.java │ │ ├── CSVBytes.java │ │ ├── CSVCharacter.java │ │ ├── CSVDate.java │ │ ├── CSVDouble.java │ │ ├── CSVFloat.java │ │ ├── CSVInteger.java │ │ ├── CSVShort.java │ │ ├── CSVString.java │ │ ├── CSVURI.java │ │ ├── CSVUnsignedIntegerFourBytes.java │ │ ├── CSVUnsignedIntegerOneByte.java │ │ └── CSVUnsignedIntegerTwoBytes.java ├── protocol │ ├── ProtocolCreationException.java │ ├── ProtocolFactory.java │ ├── ProtocolFactoryImpl.java │ ├── ReceivingAsync.java │ ├── ReceivingSync.java │ ├── RetrieveRemoteDescriptors.java │ ├── SendingAsync.java │ ├── SendingSync.java │ ├── async │ │ ├── ReceivingNotification.java │ │ ├── ReceivingSearch.java │ │ ├── ReceivingSearchResponse.java │ │ ├── SendingNotification.java │ │ ├── SendingNotificationAlive.java │ │ ├── SendingNotificationByebye.java │ │ └── SendingSearch.java │ └── sync │ │ ├── ReceivingAction.java │ │ ├── ReceivingEvent.java │ │ ├── ReceivingRetrieval.java │ │ ├── ReceivingSubscribe.java │ │ ├── ReceivingUnsubscribe.java │ │ ├── SendingAction.java │ │ ├── SendingEvent.java │ │ ├── SendingRenewal.java │ │ ├── SendingSubscribe.java │ │ └── SendingUnsubscribe.java ├── registry │ ├── DefaultRegistryListener.java │ ├── LocalItems.java │ ├── RegistrationException.java │ ├── Registry.java │ ├── RegistryImpl.java │ ├── RegistryItem.java │ ├── RegistryItems.java │ ├── RegistryListener.java │ ├── RegistryMaintainer.java │ └── RemoteItems.java ├── support │ ├── avtransport │ │ ├── AVTransportErrorCode.java │ │ ├── AVTransportException.java │ │ ├── AbstractAVTransportService.java │ │ ├── callback │ │ │ ├── GetCurrentTransportActions.java │ │ │ ├── GetDeviceCapabilities.java │ │ │ ├── GetMediaInfo.java │ │ │ ├── GetPositionInfo.java │ │ │ ├── GetTransportInfo.java │ │ │ ├── Pause.java │ │ │ ├── Play.java │ │ │ ├── Seek.java │ │ │ ├── SetAVTransportURI.java │ │ │ └── Stop.java │ │ ├── impl │ │ │ ├── AVTransportService.java │ │ │ ├── AVTransportStateMachine.java │ │ │ └── state │ │ │ │ ├── AbstractState.java │ │ │ │ ├── NoMediaPresent.java │ │ │ │ ├── PausedPlay.java │ │ │ │ ├── Playing.java │ │ │ │ └── Stopped.java │ │ ├── lastchange │ │ │ ├── AVTransportLastChangeParser.java │ │ │ └── AVTransportVariable.java │ │ └── metadata-1.0-avt.xsd │ ├── connectionmanager │ │ ├── AbstractPeeringConnectionManagerService.java │ │ ├── ConnectionManagerErrorCode.java │ │ ├── ConnectionManagerException.java │ │ ├── ConnectionManagerService.java │ │ └── callback │ │ │ ├── ConnectionComplete.java │ │ │ ├── GetCurrentConnectionInfo.java │ │ │ ├── GetProtocolInfo.java │ │ │ └── PrepareForConnection.java │ ├── contentdirectory │ │ ├── AbstractContentDirectoryService.java │ │ ├── ContentDirectoryErrorCode.java │ │ ├── ContentDirectoryException.java │ │ ├── DIDLParser.java │ │ ├── callback │ │ │ └── Browse.java │ │ ├── descriptor │ │ │ ├── dc-elements-1.1.xsd │ │ │ ├── didl-lite-1.0.xsd │ │ │ └── upnp-cds-1.0.xsd │ │ └── ui │ │ │ ├── ContentBrowseActionCallback.java │ │ │ ├── ContentBrowseActionCallbackCreator.java │ │ │ ├── ContentTree.java │ │ │ ├── ContentTreeCellRenderer.java │ │ │ └── ContentTreeExpandListener.java │ ├── igd │ │ ├── PortMappingListener.java │ │ └── callback │ │ │ ├── GetExternalIP.java │ │ │ ├── GetStatusInfo.java │ │ │ ├── PortMappingAdd.java │ │ │ └── PortMappingDelete.java │ ├── lastchange │ │ ├── Event.java │ │ ├── EventedValue.java │ │ ├── EventedValueEnum.java │ │ ├── EventedValueEnumArray.java │ │ ├── EventedValueShort.java │ │ ├── EventedValueString.java │ │ ├── EventedValueURI.java │ │ ├── EventedValueUnsignedIntegerFourBytes.java │ │ ├── EventedValueUnsignedIntegerTwoBytes.java │ │ ├── InstanceID.java │ │ ├── LastChange.java │ │ └── LastChangeParser.java │ ├── messagebox │ │ ├── AddMessage.java │ │ ├── RemoveMessage.java │ │ ├── model │ │ │ ├── DateTime.java │ │ │ ├── ElementAppender.java │ │ │ ├── Message.java │ │ │ ├── MessageIncomingCall.java │ │ │ ├── MessageSMS.java │ │ │ ├── MessageScheduleReminder.java │ │ │ └── NumberName.java │ │ └── parser │ │ │ ├── MessageDOM.java │ │ │ ├── MessageDOMParser.java │ │ │ └── MessageElement.java │ ├── model │ │ ├── AVTransport.java │ │ ├── BrowseFlag.java │ │ ├── BrowseResult.java │ │ ├── Channel.java │ │ ├── Connection.java │ │ ├── ConnectionInfo.java │ │ ├── DIDLAttribute.java │ │ ├── DIDLContent.java │ │ ├── DIDLObject.java │ │ ├── DescMeta.java │ │ ├── DeviceCapabilities.java │ │ ├── MediaInfo.java │ │ ├── Person.java │ │ ├── PersonWithRole.java │ │ ├── PlayMode.java │ │ ├── PortMapping.java │ │ ├── PositionInfo.java │ │ ├── PresetName.java │ │ ├── Protocol.java │ │ ├── ProtocolInfo.java │ │ ├── ProtocolInfos.java │ │ ├── RecordMediumWriteStatus.java │ │ ├── RecordQualityMode.java │ │ ├── Res.java │ │ ├── SeekMode.java │ │ ├── SortCriterion.java │ │ ├── StorageMedium.java │ │ ├── TransportAction.java │ │ ├── TransportInfo.java │ │ ├── TransportSettings.java │ │ ├── TransportState.java │ │ ├── TransportStatus.java │ │ ├── VolumeDBRange.java │ │ ├── WriteStatus.java │ │ ├── container │ │ │ ├── Album.java │ │ │ ├── Container.java │ │ │ ├── GenreContainer.java │ │ │ ├── MovieGenre.java │ │ │ ├── MusicAlbum.java │ │ │ ├── MusicArtist.java │ │ │ ├── MusicGenre.java │ │ │ ├── PersonContainer.java │ │ │ ├── PhotoAlbum.java │ │ │ ├── PlaylistContainer.java │ │ │ ├── StorageFolder.java │ │ │ ├── StorageSystem.java │ │ │ └── StorageVolume.java │ │ └── item │ │ │ ├── AudioBook.java │ │ │ ├── AudioBroadcast.java │ │ │ ├── AudioItem.java │ │ │ ├── ImageItem.java │ │ │ ├── Item.java │ │ │ ├── Movie.java │ │ │ ├── MusicTrack.java │ │ │ ├── MusicVideoClip.java │ │ │ ├── Photo.java │ │ │ ├── PlaylistItem.java │ │ │ ├── TextItem.java │ │ │ ├── VideoBroadcast.java │ │ │ └── VideoItem.java │ ├── renderingcontrol │ │ ├── AbstractAudioRenderingControl.java │ │ ├── RenderingControlErrorCode.java │ │ ├── RenderingControlException.java │ │ ├── callback │ │ │ ├── GetMute.java │ │ │ ├── GetVolume.java │ │ │ ├── SetMute.java │ │ │ └── SetVolume.java │ │ ├── lastchange │ │ │ ├── ChannelMute.java │ │ │ ├── ChannelVolume.java │ │ │ ├── ChannelVolumeDB.java │ │ │ ├── EventedValueChannelMute.java │ │ │ ├── EventedValueChannelVolume.java │ │ │ ├── EventedValueChannelVolumeDB.java │ │ │ ├── RenderingControlLastChangeParser.java │ │ │ └── RenderingControlVariable.java │ │ └── metadata-1.0-rcs.xsd │ ├── shared │ │ ├── AWTExceptionHandler.java │ │ ├── AbstractMap.java │ │ ├── LogCategories.java │ │ ├── MainController.java │ │ ├── PlatformApple.java │ │ ├── TextExpandDialog.java │ │ └── TextExpandEvent.java │ └── xmicrosoft │ │ └── AbstractMediaReceiverRegistrarService.java └── transport │ ├── Router.java │ ├── RouterImpl.java │ ├── SwitchableRouter.java │ ├── SwitchableRouterImpl.java │ ├── impl │ ├── DatagramIOConfigurationImpl.java │ ├── DatagramIOImpl.java │ ├── DatagramProcessorImpl.java │ ├── GENAEventProcessorImpl.java │ ├── HttpExchangeUpnpStream.java │ ├── MulticastReceiverConfigurationImpl.java │ ├── MulticastReceiverImpl.java │ ├── NetworkAddressFactoryImpl.java │ ├── SOAPActionProcessorImpl.java │ ├── StreamClientConfigurationImpl.java │ ├── StreamClientImpl.java │ ├── StreamServerConfigurationImpl.java │ ├── StreamServerImpl.java │ └── apache │ │ ├── StreamClientConfigurationImpl.java │ │ └── StreamServerConfigurationImpl.java │ └── spi │ ├── DatagramIO.java │ ├── DatagramIOConfiguration.java │ ├── DatagramProcessor.java │ ├── GENAEventProcessor.java │ ├── InitializationException.java │ ├── MulticastReceiver.java │ ├── MulticastReceiverConfiguration.java │ ├── NetworkAddressFactory.java │ ├── SOAPActionProcessor.java │ ├── StreamClient.java │ ├── StreamClientConfiguration.java │ ├── StreamServer.java │ ├── StreamServerConfiguration.java │ ├── UnsupportedDataException.java │ └── UpnpStream.java └── common ├── http ├── CacheControl.java ├── Headers.java ├── HttpFetch.java ├── Query.java └── Representation.java ├── jdoc ├── EasyDoclet$LogWriter.class ├── EasyDoclet.class └── org │ └── teleal │ └── common │ └── io │ └── IO.java ├── logging ├── LoggingUtil.java └── SystemOutLoggingHandler.java ├── mock └── http │ ├── DelegatingServletInputStream.class │ ├── DelegatingServletOutputStream.class │ ├── HeaderValueHolder.class │ ├── IteratorEnumeration.class │ ├── MockHttpServletRequest$1.class │ ├── MockHttpServletRequest.class │ ├── MockHttpServletResponse$ResponsePrintWriter.class │ ├── MockHttpServletResponse$ResponseServletOutputStream.class │ ├── MockHttpServletResponse.class │ ├── MockHttpSession.class │ ├── MockRequestDispatcher.class │ └── MockServletContext.class ├── schemas ├── xhtml1-strict.xsd └── xml.xsd ├── statemachine ├── StateMachine.java ├── StateMachineBuilder.java ├── StateMachineInvocationHandler.java ├── States.java └── TransitionException.java ├── swingfwk ├── AbstractController.java ├── ActionButton.java ├── Application.java ├── BeanTableModel.java ├── ClosableTabbedPane.java ├── ClosableTabbedPaneListener.java ├── Controller.java ├── DefaultAction.java ├── DefaultEvent.java ├── DefaultEventListener.java ├── Event.java ├── EventListener.java ├── Form.java ├── JPopupMenuButton.java ├── Node.java ├── NodeTreeModel.java └── logging │ ├── LogCategory.java │ ├── LogCategorySelector.java │ ├── LogController.java │ ├── LogMessage.java │ ├── LogTableCellRenderer.java │ ├── LogTableModel.java │ └── LoggingHandler.java ├── util ├── Base64Coder.java ├── ByteArray.java ├── Exceptions.java ├── Gfx.java ├── HexBin.java ├── MD5Crypt.java ├── MimeType.java ├── OS.java ├── Pager.java ├── Reflections.java ├── Text.java ├── Threads.java └── URIUtil.java ├── xhtml ├── Anchor.class ├── Body.class ├── Head$1.class ├── Head$2.class ├── Head.class ├── Href.class ├── Link.class ├── Meta.class ├── Option.class ├── Root$1.class ├── Root$2.class ├── Root.class ├── XHTML$ATTR.class ├── XHTML$ELEMENT.class ├── XHTML.class ├── XHTMLElement$1.class ├── XHTMLElement$2.class ├── XHTMLElement.class ├── XHTMLParser$1.class ├── XHTMLParser$2.class └── XHTMLParser.class └── xml ├── CatalogResourceResolver.java ├── DOM.java ├── DOMElement.java ├── DOMParser.java ├── NamespaceContextMap.java ├── ParserException.java └── SAXParser.java /VoiceChat_Client/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | X-COMMENT: Main-Class will be added automatically by build 3 | 4 | -------------------------------------------------------------------------------- /VoiceChat_Client/nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=5993f29c 2 | build.xml.script.CRC32=927b53c1 3 | build.xml.stylesheet.CRC32=8064a381@1.74.1.48 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=5993f29c 7 | nbproject/build-impl.xml.script.CRC32=c244b950 8 | nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.74.1.48 9 | -------------------------------------------------------------------------------- /VoiceChat_Client/nbproject/private/config.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Client/nbproject/private/config.properties -------------------------------------------------------------------------------- /VoiceChat_Client/nbproject/private/private.properties: -------------------------------------------------------------------------------- 1 | compile.on.save=true 2 | do.depend=false 3 | do.jar=true 4 | javac.debug=true 5 | javadoc.preview=true 6 | user.properties.file=C:\\Users\\busem\\AppData\\Roaming\\NetBeans\\8.0\\build.properties 7 | -------------------------------------------------------------------------------- /VoiceChat_Client/nbproject/private/private.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | file:/D:/Boom%20Messenger/voice/voice%20git/VoiceChat_Client/src/GUI.java 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /VoiceChat_Client/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.java.j2seproject 4 | 5 | 6 | Voice_Call_Client 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /VoiceChat_Client/src/ErrorMessage.java: -------------------------------------------------------------------------------- 1 | 2 | import javax.swing.JOptionPane; 3 | 4 | /* 5 | * To change this template, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | /** 10 | * 11 | * 12 | */ 13 | public class ErrorMessage { 14 | public static void main(String args[]){ 15 | JOptionPane.showMessageDialog(new JOptionPane(),"This is a library, not a program.\nPlease run VoiceChat_Server or VoiceChat_Client"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /VoiceChat_Client/src/Message.java: -------------------------------------------------------------------------------- 1 | 2 | import java.io.Serializable; 3 | 4 | /* 5 | * To change this template, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | /** 10 | * container for any type of object to be sent 11 | * 12 | */ 13 | public class Message implements Serializable{ 14 | private long chId; //-1 means from client to server, otherwise chId generated by the server 15 | private long timestamp, //-1 means from client to server, otherwise timeStamp of the moment when the server receives the message 16 | ttl=2000; //2 seconds TTL 17 | private final Object data; //can carry any type of object. in this program, i used a sound packet, but it could be a string, a chunk of video, ... 18 | 19 | 20 | public Message(long chId, long timestamp, Object data) { 21 | this.chId = chId; 22 | this.timestamp = timestamp; 23 | this.data = data; 24 | } 25 | 26 | public void setTimestamp(long timestamp) { 27 | this.timestamp = timestamp; 28 | } 29 | 30 | public long getChId() { 31 | return chId; 32 | } 33 | 34 | public Object getData() { 35 | return data; 36 | } 37 | 38 | public long getTimestamp() { 39 | return timestamp; 40 | } 41 | 42 | public long getTtl() { 43 | return ttl; 44 | } 45 | public void setTtl(long ttl) { 46 | this.ttl = ttl; 47 | } 48 | 49 | public void setChId(long chId) { 50 | this.chId = chId; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /VoiceChat_Client/src/SoundPacket.java: -------------------------------------------------------------------------------- 1 | 2 | import java.io.Serializable; 3 | import javax.sound.sampled.AudioFormat; 4 | 5 | /* 6 | * To change this template, choose Tools | Templates 7 | * and open the template in the editor. 8 | */ 9 | 10 | /** 11 | * some sound 12 | * 13 | */ 14 | public class SoundPacket implements Serializable{ 15 | public static AudioFormat defaultFormat=new AudioFormat(11025f, 8, 1, true, true); //11.025khz, 8bit, mono, signed, big endian (changes nothing in 8 bit) ~8kb/s 16 | public static int defaultDataLenght=900; //send 1000 samples/packet by default 17 | private byte[] data; //actual data. if null, comfort noise will be played 18 | 19 | public SoundPacket(byte[] data) { 20 | this.data = data; 21 | } 22 | 23 | public byte[] getData() { 24 | return data; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /VoiceChat_Client/src/Utils.java: -------------------------------------------------------------------------------- 1 | 2 | import java.io.BufferedReader; 3 | import java.io.InputStreamReader; 4 | import java.net.InetAddress; 5 | import java.net.URL; 6 | import java.net.UnknownHostException; 7 | 8 | 9 | 10 | /* 11 | * To change this template, choose Tools | Templates 12 | * and open the template in the editor. 13 | */ 14 | 15 | /** 16 | * contains some static methods used here and there in the code 17 | * 18 | */ 19 | public class Utils { 20 | public static void sleep(int ms){ 21 | try {Thread.sleep(ms);} catch (InterruptedException ex) {} 22 | } 23 | public static String getExternalIP(){ 24 | try { 25 | URL myIp=new URL("http://checkip.dyndns.org/"); 26 | BufferedReader in=new BufferedReader(new InputStreamReader(myIp.openStream())); 27 | String s=in.readLine(); 28 | return s.substring(s.lastIndexOf(":")+2,s.lastIndexOf("")); 29 | } catch (Exception ex) { 30 | return "error "+ex; 31 | } 32 | } 33 | public static String getInternalIP(){ 34 | try { 35 | return InetAddress.getLocalHost().getHostAddress(); 36 | } catch (UnknownHostException ex) { 37 | return "error"; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /VoiceChat_Server/lib/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Archiver-Version: Plexus Archiver 3 | Created-By: Apache Maven 4 | Built-By: cb 5 | Build-Jdk: 1.6.0_24 6 | 7 | -------------------------------------------------------------------------------- /VoiceChat_Server/lib/META-INF/maven/org.teleal/teleal-common/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Fri Apr 29 19:05:30 CEST 2011 3 | version=1.0.13 4 | groupId=org.teleal 5 | artifactId=teleal-common 6 | -------------------------------------------------------------------------------- /VoiceChat_Server/lib/cling-core-1.0.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/cling-core-1.0.5.jar -------------------------------------------------------------------------------- /VoiceChat_Server/lib/cling-support-1.0.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/cling-support-1.0.5.jar -------------------------------------------------------------------------------- /VoiceChat_Server/lib/com/sun/tools/javadoc/PublicMessager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/com/sun/tools/javadoc/PublicMessager.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/http/CacheControl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/http/CacheControl.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/http/Headers.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/http/Headers.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/http/HttpFetch$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/http/HttpFetch$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/http/HttpFetch$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/http/HttpFetch$2.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/http/HttpFetch$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/http/HttpFetch$3.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/http/HttpFetch$RepresentationFactory.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/http/HttpFetch$RepresentationFactory.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/http/HttpFetch.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/http/HttpFetch.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/http/Query.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/http/Query.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/http/Representation.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/http/Representation.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/http/RequestInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/http/RequestInfo.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/io/IO$FileFinder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/io/IO$FileFinder.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/io/IO.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/io/IO.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/jdoc/EasyDoclet$LogWriter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/jdoc/EasyDoclet$LogWriter.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/jdoc/EasyDoclet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/jdoc/EasyDoclet.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/logging/LoggingUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/logging/LoggingUtil.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/logging/SystemOutLoggingHandler$SimpleFormatter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/logging/SystemOutLoggingHandler$SimpleFormatter.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/logging/SystemOutLoggingHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/logging/SystemOutLoggingHandler.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/mock/http/DelegatingServletInputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/mock/http/DelegatingServletInputStream.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/mock/http/DelegatingServletOutputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/mock/http/DelegatingServletOutputStream.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/mock/http/HeaderValueHolder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/mock/http/HeaderValueHolder.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/mock/http/IteratorEnumeration.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/mock/http/IteratorEnumeration.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/mock/http/MockHttpServletRequest$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/mock/http/MockHttpServletRequest$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/mock/http/MockHttpServletRequest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/mock/http/MockHttpServletRequest.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/mock/http/MockHttpServletResponse$ResponsePrintWriter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/mock/http/MockHttpServletResponse$ResponsePrintWriter.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/mock/http/MockHttpServletResponse$ResponseServletOutputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/mock/http/MockHttpServletResponse$ResponseServletOutputStream.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/mock/http/MockHttpServletResponse.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/mock/http/MockHttpServletResponse.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/mock/http/MockHttpSession.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/mock/http/MockHttpSession.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/mock/http/MockRequestDispatcher.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/mock/http/MockRequestDispatcher.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/mock/http/MockServletContext.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/mock/http/MockServletContext.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/statemachine/StateMachine.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/statemachine/StateMachine.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/statemachine/StateMachineBuilder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/statemachine/StateMachineBuilder.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/statemachine/StateMachineInvocationHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/statemachine/StateMachineInvocationHandler.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/statemachine/States.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/statemachine/States.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/statemachine/TransitionException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/statemachine/TransitionException.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/AbstractController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/AbstractController.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/ActionButton$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/ActionButton$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/ActionButton.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/ActionButton.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/Application.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/Application.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/BeanTableModel.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/BeanTableModel.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/ClosableTabbedPane$CloseTabIcon.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/ClosableTabbedPane$CloseTabIcon.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/ClosableTabbedPane$CloseableMetalTabbedPaneUI.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/ClosableTabbedPane$CloseableMetalTabbedPaneUI.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/ClosableTabbedPane$CloseableTabbedPaneUI.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/ClosableTabbedPane$CloseableTabbedPaneUI.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/ClosableTabbedPane.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/ClosableTabbedPane.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/ClosableTabbedPaneListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/ClosableTabbedPaneListener.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/Controller.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/Controller.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/DefaultAction.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/DefaultAction.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/DefaultEvent.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/DefaultEvent.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/DefaultEventListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/DefaultEventListener.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/Event.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/Event.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/EventListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/EventListener.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/Form.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/Form.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/JPopupMenuButton$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/JPopupMenuButton$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/JPopupMenuButton.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/JPopupMenuButton.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/Node.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/Node.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/NodeTreeModel.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/NodeTreeModel.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogCategory$Group.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogCategory$Group.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogCategory$LoggerLevel.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogCategory$LoggerLevel.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogCategory.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogCategory.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogCategorySelector$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogCategorySelector$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogCategorySelector$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogCategorySelector$2.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogCategorySelector$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogCategorySelector$3.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogCategorySelector.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogCategorySelector.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$2.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$3.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$4.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$5.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$5.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$6.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$6.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$7.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$7.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$8.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$8.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$9.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$9.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$Expiration.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController$Expiration.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogController.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogMessage.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogMessage.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogTableCellRenderer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogTableCellRenderer.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogTableModel.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LogTableModel.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LoggingHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/LoggingHandler.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/configure.png -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/copyclipboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/copyclipboard.png -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/debug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/debug.png -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/info.png -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/pause.png -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/removetext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/removetext.png -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/trace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/trace.png -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/viewtext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/viewtext.png -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/warn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/swingfwk/logging/img/warn.png -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/Anchor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/Anchor.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/Body.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/Body.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/Head$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/Head$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/Head$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/Head$2.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/Head.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/Head.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/Href.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/Href.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/Link.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/Link.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/Meta.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/Meta.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/Option.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/Option.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/Root$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/Root$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/Root$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/Root$2.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/Root.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/Root.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/XHTML$ATTR.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/XHTML$ATTR.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/XHTML$ELEMENT.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/XHTML$ELEMENT.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/XHTML.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/XHTML.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/XHTMLElement$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/XHTMLElement$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/XHTMLElement$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/XHTMLElement$2.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/XHTMLElement.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/XHTMLElement.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/XHTMLParser$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/XHTMLParser$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/XHTMLParser$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/XHTMLParser$2.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xhtml/XHTMLParser.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xhtml/XHTMLParser.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/CatalogResourceResolver$Input.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/CatalogResourceResolver$Input.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/CatalogResourceResolver.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/CatalogResourceResolver.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/DOM.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/DOM.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/DOMElement$ArrayBuilder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/DOMElement$ArrayBuilder.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/DOMElement$Builder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/DOMElement$Builder.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/DOMElement.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/DOMElement.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/DOMParser$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/DOMParser$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/DOMParser$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/DOMParser$2.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/DOMParser$NodeVisitor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/DOMParser$NodeVisitor.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/DOMParser.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/DOMParser.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/NamespaceContextMap.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/NamespaceContextMap.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/ParserException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/ParserException.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/SAXParser$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/SAXParser$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/SAXParser$Handler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/SAXParser$Handler.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/SAXParser$SimpleErrorHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/SAXParser$SimpleErrorHandler.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/org/teleal/common/xml/SAXParser.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/org/teleal/common/xml/SAXParser.class -------------------------------------------------------------------------------- /VoiceChat_Server/lib/teleal-common-1.0.13.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/lib/teleal-common-1.0.13.jar -------------------------------------------------------------------------------- /VoiceChat_Server/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | X-COMMENT: Main-Class will be added automatically by build 3 | 4 | -------------------------------------------------------------------------------- /VoiceChat_Server/nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=729bc39a 2 | build.xml.script.CRC32=6d1b0b19 3 | build.xml.stylesheet.CRC32=8064a381@1.74.1.48 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=729bc39a 7 | nbproject/build-impl.xml.script.CRC32=3d7881a9 8 | nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.74.1.48 9 | -------------------------------------------------------------------------------- /VoiceChat_Server/nbproject/private/config.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/nbproject/private/config.properties -------------------------------------------------------------------------------- /VoiceChat_Server/nbproject/private/private.properties: -------------------------------------------------------------------------------- 1 | compile.on.save=true 2 | do.depend=false 3 | do.jar=true 4 | javac.debug=true 5 | javadoc.preview=true 6 | user.properties.file=C:\\Users\\busem\\AppData\\Roaming\\NetBeans\\8.0\\build.properties 7 | -------------------------------------------------------------------------------- /VoiceChat_Server/nbproject/private/private.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | file:/D:/Boom%20Messenger/voice/voice%20git/VoiceChat_Server/src/Message.java 8 | file:/D:/Boom%20Messenger/voice/voice%20git/VoiceChat_Server/src/org/teleal/cling/binding/xml/UDA10DeviceDescriptorBinderImpl.java 9 | file:/D:/Boom%20Messenger/voice/voice%20git/VoiceChat_Server/src/Server.java 10 | file:/D:/Boom%20Messenger/voice/voice%20git/VoiceChat_Server/src/Utils.java 11 | file:/D:/Boom%20Messenger/voice/voice%20git/VoiceChat_Server/src/ErrorMessage.java 12 | file:/D:/Boom%20Messenger/voice/voice%20git/VoiceChat_Server/src/ClientConnection.java 13 | file:/D:/Boom%20Messenger/voice/voice%20git/VoiceChat_Server/src/SoundPacket.java 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /VoiceChat_Server/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.java.j2seproject 4 | 5 | 6 | Voice_Call_Server 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/ErrorMessage.java: -------------------------------------------------------------------------------- 1 | 2 | import javax.swing.JOptionPane; 3 | 4 | /* 5 | * To change this template, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | /** 10 | * 11 | * 12 | */ 13 | public class ErrorMessage { 14 | public static void main(String args[]){ 15 | JOptionPane.showMessageDialog(new JOptionPane(),"This is a library, not a program.\nPlease run VoiceChat_Server or VoiceChat_Client"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/Log.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | /** 7 | * server's log. instances of Server add entries to this log 8 | * 9 | */ 10 | public class Log { 11 | private static String log=""; 12 | public static void add(String s){log+=s+"\n";} 13 | public static String get(){return log;} 14 | } 15 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/Message.java: -------------------------------------------------------------------------------- 1 | 2 | import java.io.Serializable; 3 | 4 | /* 5 | * To change this template, choose Tools | Templates 6 | * and open the template in the editor. 7 | */ 8 | 9 | /** 10 | * container for any type of object to be sent 11 | * 12 | */ 13 | public class Message implements Serializable{ 14 | private long chId; //-1 means from client to server, otherwise chId generated by the server 15 | private long timestamp, //-1 means from client to server, otherwise timeStamp of the moment when the server receives the message 16 | ttl=2000; //2 seconds TTL 17 | private final Object data; //can carry any type of object. in this program, i used a sound packet, but it could be a string, a chunk of video, ... 18 | 19 | 20 | public Message(long chId, long timestamp, Object data) { 21 | this.chId = chId; 22 | this.timestamp = timestamp; 23 | this.data = data; 24 | } 25 | 26 | public void setTimestamp(long timestamp) { 27 | this.timestamp = timestamp; 28 | } 29 | 30 | public long getChId() { 31 | return chId; 32 | } 33 | 34 | public Object getData() { 35 | return data; 36 | } 37 | 38 | public long getTimestamp() { 39 | return timestamp; 40 | } 41 | 42 | public long getTtl() { 43 | return ttl; 44 | } 45 | public void setTtl(long ttl) { 46 | this.ttl = ttl; 47 | } 48 | 49 | public void setChId(long chId) { 50 | this.chId = chId; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/SoundPacket.java: -------------------------------------------------------------------------------- 1 | 2 | import java.io.Serializable; 3 | import javax.sound.sampled.AudioFormat; 4 | 5 | /* 6 | * To change this template, choose Tools | Templates 7 | * and open the template in the editor. 8 | */ 9 | 10 | /** 11 | * some sound 12 | * 13 | */ 14 | public class SoundPacket implements Serializable{ 15 | public static AudioFormat defaultFormat=new AudioFormat(11025f, 8, 1, true, true); //11.025khz, 8bit, mono, signed, big endian (changes nothing in 8 bit) ~8kb/s 16 | public static int defaultDataLenght=900; //send 1000 samples/packet by default 17 | private byte[] data; //actual data. if null, comfort noise will be played 18 | 19 | public SoundPacket(byte[] data) { 20 | this.data = data; 21 | } 22 | 23 | public byte[] getData() { 24 | return data; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/Utils.java: -------------------------------------------------------------------------------- 1 | 2 | import java.io.BufferedReader; 3 | import java.io.InputStreamReader; 4 | import java.net.InetAddress; 5 | import java.net.URL; 6 | import java.net.UnknownHostException; 7 | 8 | 9 | 10 | /* 11 | * To change this template, choose Tools | Templates 12 | * and open the template in the editor. 13 | */ 14 | 15 | /** 16 | * contains some static methods used here and there in the code 17 | * 18 | */ 19 | public class Utils { 20 | public static void sleep(int ms){ 21 | try {Thread.sleep(ms);} catch (InterruptedException ex) {} 22 | } 23 | public static String getExternalIP(){ 24 | try { 25 | URL myIp=new URL("http://checkip.dyndns.org/"); 26 | BufferedReader in=new BufferedReader(new InputStreamReader(myIp.openStream())); 27 | String s=in.readLine(); 28 | return s.substring(s.lastIndexOf(":")+2,s.lastIndexOf("")); 29 | } catch (Exception ex) { 30 | return "error "+ex; 31 | } 32 | } 33 | public static String getInternalIP(){ 34 | try { 35 | return InetAddress.getLocalHost().getHostAddress(); 36 | } catch (UnknownHostException ex) { 37 | return "error"; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/binding/LocalServiceBindingException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.binding; 19 | 20 | /** 21 | * Thrown when reading/writing {@link org.teleal.cling.model.meta.LocalService} metadata failed. 22 | * 23 | * @author Christian Bauer 24 | */ 25 | public class LocalServiceBindingException extends RuntimeException { 26 | 27 | public LocalServiceBindingException(String s) { 28 | super(s); 29 | } 30 | 31 | public LocalServiceBindingException(String s, Throwable throwable) { 32 | super(s, throwable); 33 | } 34 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/binding/annotations/UpnpAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.binding.annotations; 19 | 20 | import java.lang.annotation.ElementType; 21 | import java.lang.annotation.Retention; 22 | import java.lang.annotation.RetentionPolicy; 23 | import java.lang.annotation.Target; 24 | 25 | 26 | @Target({ElementType.METHOD}) 27 | @Retention(RetentionPolicy.RUNTIME) 28 | public @interface UpnpAction { 29 | 30 | String name() default ""; 31 | UpnpOutputArgument[] out() default {}; 32 | } 33 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/binding/annotations/UpnpInputArgument.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.binding.annotations; 19 | 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Retention; 22 | import java.lang.annotation.ElementType; 23 | import java.lang.annotation.Target; 24 | 25 | 26 | @Target({ElementType.PARAMETER}) 27 | @Retention(RetentionPolicy.RUNTIME) 28 | public @interface UpnpInputArgument { 29 | 30 | String name(); 31 | String[] aliases() default {}; 32 | String stateVariable() default ""; 33 | } 34 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/binding/annotations/UpnpOutputArgument.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.binding.annotations; 19 | 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Inherited; 22 | import java.lang.annotation.Retention; 23 | import java.lang.annotation.ElementType; 24 | import java.lang.annotation.Target; 25 | 26 | 27 | @Target({ElementType.PARAMETER}) 28 | @Retention(RetentionPolicy.RUNTIME) 29 | public @interface UpnpOutputArgument { 30 | 31 | String name(); 32 | String stateVariable() default ""; 33 | String getterName() default ""; 34 | 35 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/binding/annotations/UpnpService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.binding.annotations; 19 | 20 | import java.lang.annotation.ElementType; 21 | import java.lang.annotation.Inherited; 22 | import java.lang.annotation.Retention; 23 | import java.lang.annotation.RetentionPolicy; 24 | import java.lang.annotation.Target; 25 | 26 | 27 | @Target({ElementType.TYPE}) 28 | @Retention(RetentionPolicy.RUNTIME) 29 | @Inherited 30 | public @interface UpnpService { 31 | 32 | UpnpServiceId serviceId(); 33 | UpnpServiceType serviceType(); 34 | 35 | boolean supportsQueryStateVariables() default true; 36 | Class[] stringConvertibleTypes() default {}; 37 | } 38 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/binding/annotations/UpnpServiceId.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.binding.annotations; 19 | 20 | import org.teleal.cling.model.types.UDAServiceId; 21 | 22 | import java.lang.annotation.Inherited; 23 | import java.lang.annotation.RetentionPolicy; 24 | import java.lang.annotation.Retention; 25 | import java.lang.annotation.Target; 26 | 27 | 28 | @Target({}) 29 | @Retention(RetentionPolicy.RUNTIME) 30 | public @interface UpnpServiceId { 31 | 32 | String namespace() default UDAServiceId.DEFAULT_NAMESPACE; 33 | String value(); 34 | } 35 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/binding/annotations/UpnpServiceType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.binding.annotations; 19 | 20 | import org.teleal.cling.model.types.UDAServiceType; 21 | 22 | import java.lang.annotation.Inherited; 23 | import java.lang.annotation.Retention; 24 | import java.lang.annotation.RetentionPolicy; 25 | import java.lang.annotation.Target; 26 | 27 | 28 | @Target({}) 29 | @Retention(RetentionPolicy.RUNTIME) 30 | public @interface UpnpServiceType { 31 | 32 | String namespace() default UDAServiceType.DEFAULT_NAMESPACE; 33 | String value(); 34 | int version() default 1; 35 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/binding/annotations/UpnpStateVariables.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.binding.annotations; 19 | 20 | import java.lang.annotation.Inherited; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Retention; 23 | import java.lang.annotation.ElementType; 24 | import java.lang.annotation.Target; 25 | 26 | 27 | @Target({ElementType.TYPE}) 28 | @Retention(RetentionPolicy.RUNTIME) 29 | @Inherited 30 | public @interface UpnpStateVariables { 31 | 32 | UpnpStateVariable[] value() default {}; 33 | boolean preferFields() default true; 34 | 35 | } 36 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/binding/staging/MutableActionArgument.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.binding.staging; 19 | 20 | import org.teleal.cling.model.meta.ActionArgument; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public class MutableActionArgument { 26 | 27 | public String name; 28 | public String relatedStateVariable; 29 | public ActionArgument.Direction direction; 30 | public boolean retval; 31 | 32 | public ActionArgument build() { 33 | return new ActionArgument(name, relatedStateVariable, direction, retval); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/binding/staging/MutableAllowedValueRange.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.binding.staging; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class MutableAllowedValueRange { 24 | 25 | // TODO: UPNP VIOLATION: Some devices (Netgear Router again...) send empty elements, so use some sane defaults 26 | // TODO: UPNP VIOLATION: The WANCommonInterfaceConfig example XML is even wrong, it does not include a element! 27 | public Long minimum = 0l; 28 | public Long maximum = Long.MAX_VALUE; 29 | public Long step = 1l; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/binding/staging/MutableIcon.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.binding.staging; 19 | 20 | import org.teleal.cling.model.meta.Icon; 21 | 22 | import java.net.URI; 23 | 24 | /** 25 | * @author Christian Bauer 26 | */ 27 | public class MutableIcon { 28 | 29 | public String mimeType; 30 | public int width; 31 | public int height; 32 | public int depth; 33 | public URI uri; 34 | 35 | public Icon build() { 36 | return new Icon(mimeType, width, height, depth, uri); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/binding/staging/MutableUDAVersion.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.binding.staging; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class MutableUDAVersion { 24 | public int major = 1; 25 | public int minor = 0; 26 | } 27 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/binding/xml/DescriptorBindingException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.binding.xml; 19 | 20 | /** 21 | * Thrown if device or service descriptor metadata couldn't be read or written. 22 | * 23 | * @author Christian Bauer 24 | */ 25 | public class DescriptorBindingException extends Exception { 26 | 27 | public DescriptorBindingException(String s) { 28 | super(s); 29 | } 30 | 31 | public DescriptorBindingException(String s, Throwable throwable) { 32 | super(s, throwable); 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/Command.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model; 19 | 20 | /** 21 | * Executable procedure, invoked and potentially decorated by the {@link org.teleal.cling.model.ServiceManager}. 22 | * 23 | * @author Christian Bauer 24 | */ 25 | public interface Command { 26 | 27 | public void execute(ServiceManager manager) throws Exception; 28 | } 29 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/Validatable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model; 19 | 20 | import java.util.List; 21 | 22 | /** 23 | * Marker for types with integrity rules that require validation. 24 | * 25 | * @author Christian Bauer 26 | */ 27 | public interface Validatable { 28 | 29 | /** 30 | * @return An empty List if all rules validated properly, otherwise, the detected errors. 31 | */ 32 | public List validate(); 33 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/ValidationException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model; 19 | 20 | 21 | import java.util.List; 22 | 23 | /** 24 | * Thrown if integrity rule violations are exceptional, encapsulating the errors. 25 | * 26 | * @author Christian Bauer 27 | */ 28 | public class ValidationException extends Exception { 29 | 30 | public List errors; 31 | 32 | public ValidationException(String s) { 33 | super(s); 34 | } 35 | 36 | public ValidationException(String s, Throwable throwable) { 37 | super(s, throwable); 38 | } 39 | 40 | public ValidationException(String s, List errors) { 41 | super(s); 42 | this.errors = errors; 43 | } 44 | 45 | public List getErrors() { 46 | return errors; 47 | } 48 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/action/ActionExecutor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.action; 19 | 20 | import org.teleal.cling.model.meta.LocalService; 21 | 22 | /** 23 | * Executes an {@link org.teleal.cling.model.action.ActionInvocation}. 24 | * 25 | * @author Christian Bauer 26 | */ 27 | public interface ActionExecutor { 28 | 29 | public void execute(final ActionInvocation actionInvocation); 30 | } 31 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/gena/CancelReason.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.gena; 19 | 20 | /** 21 | * The reason why a {@link org.teleal.cling.model.gena.GENASubscription} has ended unexpectedly. 22 | * 23 | * @author Christian Bauer 24 | */ 25 | public enum CancelReason { 26 | 27 | RENEWAL_FAILED, 28 | DEVICE_WAS_REMOVED, 29 | UNSUBSCRIBE_FAILED, 30 | EXPIRED 31 | } 32 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/message/UpnpOperation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.message; 19 | 20 | /** 21 | * The operation, or HTTP details, of a message. 22 | * 23 | * @author Christian Bauer 24 | */ 25 | public abstract class UpnpOperation { 26 | 27 | private int httpMinorVersion = 1; 28 | 29 | public int getHttpMinorVersion() { 30 | return httpMinorVersion; 31 | } 32 | 33 | public void setHttpMinorVersion(int httpMinorVersion) { 34 | this.httpMinorVersion = httpMinorVersion; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/message/control/ActionMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.message.control; 19 | 20 | import org.teleal.cling.model.message.UpnpMessage; 21 | 22 | /** 23 | * A narrowing interface for action request/response messages. 24 | * 25 | * @author Christian Bauer 26 | */ 27 | public interface ActionMessage { 28 | 29 | public String getActionNamespace(); 30 | 31 | public Object getBody(); 32 | public UpnpMessage.BodyType getBodyType(); 33 | public String getBodyString(); 34 | public byte[] getBodyBytes(); 35 | 36 | public void setBody(UpnpMessage.BodyType bodyType, Object body); 37 | 38 | } 39 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/message/control/ActionRequestMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.message.control; 19 | 20 | 21 | /** 22 | * @author Christian Bauer 23 | */ 24 | public interface ActionRequestMessage extends ActionMessage { 25 | } 26 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/message/control/ActionResponseMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.message.control; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public interface ActionResponseMessage extends ActionMessage { 24 | } 25 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/message/gena/OutgoingEventResponseMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.message.gena; 19 | 20 | import org.teleal.cling.model.message.StreamResponseMessage; 21 | import org.teleal.cling.model.message.UpnpResponse; 22 | 23 | /** 24 | * @author Christian Bauer 25 | */ 26 | public class OutgoingEventResponseMessage extends StreamResponseMessage { 27 | 28 | public OutgoingEventResponseMessage() { 29 | super(new UpnpResponse(UpnpResponse.Status.OK)); 30 | } 31 | 32 | public OutgoingEventResponseMessage(UpnpResponse operation) { 33 | super(operation); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/message/header/EXTHeader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.message.header; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class EXTHeader extends UpnpHeader { 24 | 25 | // That's just an empty header! Isn't that great... 26 | public final static String DEFAULT_VALUE = ""; 27 | 28 | public EXTHeader() { 29 | setValue(DEFAULT_VALUE); 30 | } 31 | 32 | public void setString(String s) throws InvalidHeaderException { 33 | if (s != null && s.length() > 0) { 34 | throw new InvalidHeaderException("Invalid EXT header, it has no value: " + s); 35 | } 36 | } 37 | 38 | public String getString() { 39 | return getValue(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/message/header/InvalidHeaderException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.message.header; 19 | 20 | /** 21 | * Thrown if the value of a header was invalid for the given header. 22 | * 23 | * @author Christian Bauer 24 | */ 25 | public class InvalidHeaderException extends RuntimeException { 26 | 27 | public InvalidHeaderException(String s) { 28 | super(s); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/message/header/NTEventHeader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.message.header; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class NTEventHeader extends UpnpHeader { 24 | 25 | public NTEventHeader() { 26 | setValue("upnp:event"); 27 | } 28 | 29 | public void setString(String s) throws InvalidHeaderException { 30 | if (!s.toLowerCase().equals(getValue())) { 31 | throw new InvalidHeaderException("Invalid event NT header value: " + s); 32 | } 33 | } 34 | 35 | public String getString() { 36 | return getValue(); 37 | } 38 | 39 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/message/header/RootDeviceHeader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.message.header; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class RootDeviceHeader extends UpnpHeader { 24 | 25 | public RootDeviceHeader() { 26 | setValue("upnp:rootdevice"); 27 | } 28 | 29 | public void setString(String s) throws InvalidHeaderException { 30 | if (!s.toLowerCase().equals(getValue())) { 31 | throw new InvalidHeaderException("Invalid root device NT header value: " + s); 32 | } 33 | } 34 | 35 | public String getString() { 36 | return getValue(); 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/message/header/STAllHeader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.message.header; 19 | 20 | import org.teleal.cling.model.types.NotificationSubtype; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public class STAllHeader extends UpnpHeader { 26 | 27 | public STAllHeader() { 28 | setValue(NotificationSubtype.ALL); 29 | } 30 | 31 | public void setString(String s) throws InvalidHeaderException { 32 | if (!s.equals(NotificationSubtype.ALL.getHeaderString())) { 33 | throw new InvalidHeaderException("Invalid ST header value (not "+NotificationSubtype.ALL+"): " + s); 34 | } 35 | } 36 | 37 | public String getString() { 38 | return getValue().getHeaderString(); 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/message/header/SubscriptionIdHeader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.message.header; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class SubscriptionIdHeader extends UpnpHeader { 24 | 25 | public static final String PREFIX = "uuid:"; 26 | 27 | public SubscriptionIdHeader() { 28 | } 29 | 30 | public SubscriptionIdHeader(String value) { 31 | setValue(value); 32 | } 33 | 34 | public void setString(String s) throws InvalidHeaderException { 35 | if (!s.startsWith(PREFIX)) { 36 | throw new InvalidHeaderException("Invalid subscription ID header value, must start with '"+PREFIX+"': " + s); 37 | } 38 | setValue(s); 39 | } 40 | 41 | public String getString() { 42 | return getValue(); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/message/header/UserAgentHeader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.message.header; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class UserAgentHeader extends ServerHeader { 24 | 25 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/profile/ControlPointInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.profile; 19 | 20 | import org.teleal.cling.model.message.UpnpHeaders; 21 | 22 | /** 23 | * Encapsulates all known/detected information about a control point 24 | * 25 | * @author Christian Bauer 26 | */ 27 | public class ControlPointInfo { 28 | 29 | UpnpHeaders headers; 30 | 31 | public ControlPointInfo() { 32 | this(new UpnpHeaders()); 33 | } 34 | 35 | public ControlPointInfo(UpnpHeaders headers) { 36 | this.headers = headers; 37 | } 38 | 39 | public UpnpHeaders getHeaders() { 40 | return headers; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/resource/DeviceDescriptorResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.resource; 19 | 20 | import org.teleal.cling.model.meta.LocalDevice; 21 | 22 | import java.net.URI; 23 | 24 | /** 25 | * @author Christian Bauer 26 | */ 27 | public class DeviceDescriptorResource extends Resource { 28 | 29 | public DeviceDescriptorResource(URI localURI, LocalDevice model) { 30 | super(localURI, model); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/resource/IconResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.resource; 19 | 20 | import org.teleal.cling.model.meta.Icon; 21 | 22 | import java.net.URI; 23 | 24 | /** 25 | * @author Christian Bauer 26 | */ 27 | public class IconResource extends Resource { 28 | 29 | public IconResource(URI localURI, Icon model) { 30 | super(localURI, model); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/resource/ServiceControlResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.resource; 19 | 20 | import org.teleal.cling.model.meta.LocalService; 21 | 22 | import java.net.URI; 23 | 24 | /** 25 | * @author Christian Bauer 26 | */ 27 | public class ServiceControlResource extends Resource { 28 | 29 | public ServiceControlResource(URI localURI, LocalService model) { 30 | super(localURI, model); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/resource/ServiceDescriptorResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.resource; 19 | 20 | import org.teleal.cling.model.meta.LocalService; 21 | 22 | import java.net.URI; 23 | 24 | /** 25 | * @author Christian Bauer 26 | */ 27 | public class ServiceDescriptorResource extends Resource { 28 | 29 | public ServiceDescriptorResource(URI localURI, LocalService model) { 30 | super(localURI, model); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/resource/ServiceEventCallbackResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.resource; 19 | 20 | import org.teleal.cling.model.meta.RemoteService; 21 | 22 | import java.net.URI; 23 | 24 | /** 25 | * @author Christian Bauer 26 | */ 27 | public class ServiceEventCallbackResource extends Resource { 28 | 29 | public ServiceEventCallbackResource(URI localURI, RemoteService model) { 30 | super(localURI, model); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/resource/ServiceEventSubscriptionResource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.resource; 19 | 20 | import org.teleal.cling.model.meta.LocalService; 21 | 22 | import java.net.URI; 23 | 24 | /** 25 | * @author Christian Bauer 26 | */ 27 | public class ServiceEventSubscriptionResource extends Resource { 28 | 29 | public ServiceEventSubscriptionResource(URI localURI, LocalService model) { 30 | super(localURI, model); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/CharacterDatatype.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class CharacterDatatype extends AbstractDatatype { 24 | 25 | public CharacterDatatype() { 26 | } 27 | 28 | @Override 29 | public boolean isHandlingJavaType(Class type) { 30 | return type == Character.TYPE || Character.class.isAssignableFrom(type); 31 | } 32 | 33 | public Character valueOf(String s) throws InvalidValueException { 34 | if (s.equals("")) return null; 35 | return s.charAt(0); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/CustomDatatype.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class CustomDatatype extends AbstractDatatype { 24 | 25 | private String name; 26 | 27 | public CustomDatatype(String name) { 28 | this.name = name; 29 | } 30 | 31 | public String getName() { 32 | return name; 33 | } 34 | 35 | public String valueOf(String s) throws InvalidValueException { 36 | if (s.equals("")) return null; 37 | return s; 38 | } 39 | 40 | @Override 41 | public String toString() { 42 | return "(" + getClass().getSimpleName() + ") '" + getName() + "'"; 43 | } 44 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/DoubleDatatype.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class DoubleDatatype extends AbstractDatatype { 24 | 25 | public DoubleDatatype() { 26 | } 27 | 28 | @Override 29 | public boolean isHandlingJavaType(Class type) { 30 | return type == Double.TYPE || Double.class.isAssignableFrom(type); 31 | } 32 | 33 | public Double valueOf(String s) throws InvalidValueException { 34 | if (s.equals("")) return null; 35 | try { 36 | return Double.parseDouble(s); 37 | } catch (NumberFormatException ex) { 38 | throw new InvalidValueException("Can't convert string to number: " + s, ex); 39 | } 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/FloatDatatype.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class FloatDatatype extends AbstractDatatype { 24 | 25 | public FloatDatatype() { 26 | } 27 | 28 | @Override 29 | public boolean isHandlingJavaType(Class type) { 30 | return type == Float.TYPE || Float.class.isAssignableFrom(type); 31 | } 32 | 33 | public Float valueOf(String s) throws InvalidValueException { 34 | if (s.equals("")) return null; 35 | try { 36 | return Float.parseFloat(s); 37 | } catch (NumberFormatException ex) { 38 | throw new InvalidValueException("Can't convert string to number: " + s, ex); 39 | } 40 | } 41 | 42 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/InvalidValueException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types; 19 | 20 | /** 21 | * Thrown by datatypes and variable value conversion procedures. 22 | * 23 | * @author Christian Bauer 24 | */ 25 | public class InvalidValueException extends RuntimeException { 26 | 27 | public InvalidValueException(String s) { 28 | super(s); 29 | } 30 | 31 | public InvalidValueException(String s, Throwable throwable) { 32 | super(s, throwable); 33 | } 34 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/NotificationSubtype.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types; 19 | 20 | /** 21 | * Notification message types for SSDP. 22 | * 23 | * @author Christian Bauer 24 | */ 25 | public enum NotificationSubtype { 26 | 27 | ALIVE("ssdp:alive"), 28 | UPDATE("ssdp:update"), 29 | BYEBYE("ssdp:byebye"), 30 | ALL("ssdp:all"), 31 | DISCOVER("ssdp:discover"), 32 | PROPCHANGE("upnp:propchange"); 33 | 34 | private String headerString; 35 | 36 | NotificationSubtype(String headerString) { 37 | this.headerString = headerString; 38 | } 39 | 40 | public String getHeaderString() { 41 | return headerString; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/StringDatatype.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class StringDatatype extends AbstractDatatype { 24 | 25 | public StringDatatype() { 26 | } 27 | 28 | public String valueOf(String s) throws InvalidValueException { 29 | if (s.equals("")) return null; 30 | return s; 31 | } 32 | 33 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/URIDatatype.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types; 19 | 20 | import java.net.URI; 21 | import java.net.URISyntaxException; 22 | 23 | /** 24 | * @author Christian Bauer 25 | */ 26 | public class URIDatatype extends AbstractDatatype { 27 | 28 | public URIDatatype() { 29 | } 30 | 31 | public URI valueOf(String s) throws InvalidValueException { 32 | if (s.equals("")) return null; 33 | try { 34 | return new URI(s); 35 | } catch (URISyntaxException ex) { 36 | throw new InvalidValueException(ex.getMessage(), ex); 37 | } 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/UnsignedIntegerFourBytes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | final public class UnsignedIntegerFourBytes extends UnsignedVariableInteger { 24 | 25 | public UnsignedIntegerFourBytes(long value) throws NumberFormatException { 26 | super(value); 27 | } 28 | 29 | public UnsignedIntegerFourBytes(String s) throws NumberFormatException { 30 | super(s); 31 | } 32 | 33 | public Bits getBits() { 34 | return Bits.THIRTYTWO; 35 | } 36 | 37 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/UnsignedIntegerFourBytesDatatype.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class UnsignedIntegerFourBytesDatatype extends AbstractDatatype { 24 | 25 | public UnsignedIntegerFourBytes valueOf(String s) throws InvalidValueException { 26 | if (s.equals("")) return null; 27 | try { 28 | return new UnsignedIntegerFourBytes(s); 29 | } catch (NumberFormatException ex) { 30 | throw new InvalidValueException("Can't convert string to number or not in range: " + s, ex); 31 | } 32 | } 33 | 34 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/UnsignedIntegerOneByte.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | final public class UnsignedIntegerOneByte extends UnsignedVariableInteger { 24 | 25 | public UnsignedIntegerOneByte(long value) throws NumberFormatException { 26 | super(value); 27 | } 28 | 29 | public UnsignedIntegerOneByte(String s) throws NumberFormatException { 30 | super(s); 31 | } 32 | 33 | public Bits getBits() { 34 | return Bits.EIGHT; 35 | } 36 | 37 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/UnsignedIntegerOneByteDatatype.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class UnsignedIntegerOneByteDatatype extends AbstractDatatype { 24 | 25 | public UnsignedIntegerOneByte valueOf(String s) throws InvalidValueException { 26 | if (s.equals("")) return null; 27 | try { 28 | return new UnsignedIntegerOneByte(s); 29 | } catch (NumberFormatException ex) { 30 | throw new InvalidValueException("Can't convert string to number or not in range: " + s, ex); 31 | } 32 | } 33 | 34 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/UnsignedIntegerTwoBytes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | final public class UnsignedIntegerTwoBytes extends UnsignedVariableInteger { 24 | 25 | public UnsignedIntegerTwoBytes(long value) throws NumberFormatException { 26 | super(value); 27 | } 28 | 29 | public UnsignedIntegerTwoBytes(String s) throws NumberFormatException { 30 | super(s); 31 | } 32 | 33 | public Bits getBits() { 34 | return Bits.SIXTEEN; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/UnsignedIntegerTwoBytesDatatype.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class UnsignedIntegerTwoBytesDatatype extends AbstractDatatype { 24 | 25 | public UnsignedIntegerTwoBytes valueOf(String s) throws InvalidValueException { 26 | if (s.equals("")) return null; 27 | try { 28 | return new UnsignedIntegerTwoBytes(s); 29 | } catch (NumberFormatException ex) { 30 | throw new InvalidValueException("Can't convert string to number or not in range: " + s, ex); 31 | } 32 | } 33 | 34 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/csv/CSVBoolean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types.csv; 19 | 20 | import org.teleal.cling.model.types.InvalidValueException; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public class CSVBoolean extends CSV { 26 | 27 | public CSVBoolean() { 28 | } 29 | 30 | public CSVBoolean(String s) throws InvalidValueException { 31 | super(s); 32 | } 33 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/csv/CSVBytes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types.csv; 19 | 20 | import org.teleal.cling.model.types.InvalidValueException; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public class CSVBytes extends CSV { 26 | 27 | public CSVBytes() { 28 | } 29 | 30 | public CSVBytes(String s) throws InvalidValueException { 31 | super(s); 32 | } 33 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/csv/CSVCharacter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types.csv; 19 | 20 | import org.teleal.cling.model.types.InvalidValueException; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public class CSVCharacter extends CSV { 26 | 27 | public CSVCharacter() { 28 | } 29 | 30 | public CSVCharacter(String s) throws InvalidValueException { 31 | super(s); 32 | } 33 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/csv/CSVDate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types.csv; 19 | 20 | import org.teleal.cling.model.types.InvalidValueException; 21 | 22 | import java.util.Date; 23 | 24 | /** 25 | * @author Christian Bauer 26 | */ 27 | public class CSVDate extends CSV { 28 | 29 | public CSVDate() { 30 | } 31 | 32 | public CSVDate(String s) throws InvalidValueException { 33 | super(s); 34 | } 35 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/csv/CSVDouble.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types.csv; 19 | 20 | import org.teleal.cling.model.types.InvalidValueException; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public class CSVDouble extends CSV { 26 | 27 | public CSVDouble() { 28 | } 29 | 30 | public CSVDouble(String s) throws InvalidValueException { 31 | super(s); 32 | } 33 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/csv/CSVFloat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types.csv; 19 | 20 | import org.teleal.cling.model.types.InvalidValueException; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public class CSVFloat extends CSV { 26 | 27 | public CSVFloat() { 28 | } 29 | 30 | public CSVFloat(String s) throws InvalidValueException { 31 | super(s); 32 | } 33 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/csv/CSVInteger.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types.csv; 19 | 20 | import org.teleal.cling.model.types.InvalidValueException; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public class CSVInteger extends CSV { 26 | 27 | public CSVInteger() { 28 | } 29 | 30 | public CSVInteger(String s) throws InvalidValueException { 31 | super(s); 32 | } 33 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/csv/CSVShort.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types.csv; 19 | 20 | import org.teleal.cling.model.types.InvalidValueException; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public class CSVShort extends CSV { 26 | 27 | public CSVShort() { 28 | } 29 | 30 | public CSVShort(String s) throws InvalidValueException { 31 | super(s); 32 | } 33 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/csv/CSVString.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types.csv; 19 | 20 | import org.teleal.cling.model.types.InvalidValueException; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public class CSVString extends CSV { 26 | 27 | public CSVString() { 28 | } 29 | 30 | public CSVString(String s) throws InvalidValueException { 31 | super(s); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/csv/CSVURI.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types.csv; 19 | 20 | import org.teleal.cling.model.types.InvalidValueException; 21 | 22 | import java.net.URI; 23 | 24 | /** 25 | * @author Christian Bauer 26 | */ 27 | public class CSVURI extends CSV { 28 | 29 | public CSVURI() { 30 | } 31 | 32 | public CSVURI(String s) throws InvalidValueException { 33 | super(s); 34 | } 35 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/csv/CSVUnsignedIntegerFourBytes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types.csv; 19 | 20 | import org.teleal.cling.model.types.InvalidValueException; 21 | import org.teleal.cling.model.types.UnsignedIntegerFourBytes; 22 | 23 | /** 24 | * @author Christian Bauer 25 | */ 26 | public class CSVUnsignedIntegerFourBytes extends CSV { 27 | 28 | public CSVUnsignedIntegerFourBytes() { 29 | } 30 | 31 | public CSVUnsignedIntegerFourBytes(String s) throws InvalidValueException { 32 | super(s); 33 | } 34 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/csv/CSVUnsignedIntegerOneByte.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types.csv; 19 | 20 | import org.teleal.cling.model.types.InvalidValueException; 21 | import org.teleal.cling.model.types.UnsignedIntegerOneByte; 22 | 23 | /** 24 | * @author Christian Bauer 25 | */ 26 | public class CSVUnsignedIntegerOneByte extends CSV { 27 | 28 | public CSVUnsignedIntegerOneByte() { 29 | } 30 | 31 | public CSVUnsignedIntegerOneByte(String s) throws InvalidValueException { 32 | super(s); 33 | } 34 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/model/types/csv/CSVUnsignedIntegerTwoBytes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.model.types.csv; 19 | 20 | import org.teleal.cling.model.types.InvalidValueException; 21 | import org.teleal.cling.model.types.UnsignedIntegerTwoBytes; 22 | 23 | /** 24 | * @author Christian Bauer 25 | */ 26 | public class CSVUnsignedIntegerTwoBytes extends CSV { 27 | 28 | public CSVUnsignedIntegerTwoBytes() { 29 | } 30 | 31 | public CSVUnsignedIntegerTwoBytes(String s) throws InvalidValueException { 32 | super(s); 33 | } 34 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/protocol/ProtocolCreationException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.protocol; 19 | 20 | /** 21 | * Recoverable error, thrown when no protocol is available to handle a UPnP message. 22 | * 23 | * @author Christian Bauer 24 | */ 25 | public class ProtocolCreationException extends Exception { 26 | 27 | public ProtocolCreationException(String s) { 28 | super(s); 29 | } 30 | 31 | public ProtocolCreationException(String s, Throwable throwable) { 32 | super(s, throwable); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/avtransport/impl/state/AbstractState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.avtransport.impl.state; 19 | 20 | import org.teleal.cling.support.model.AVTransport; 21 | import org.teleal.cling.support.model.TransportAction; 22 | 23 | /** 24 | * 25 | */ 26 | public abstract class AbstractState { 27 | 28 | private T transport; 29 | 30 | public AbstractState(T transport) { 31 | this.transport = transport; 32 | } 33 | 34 | public T getTransport() { 35 | return transport; 36 | } 37 | 38 | public abstract TransportAction[] getCurrentTransportActions(); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/contentdirectory/ui/ContentBrowseActionCallbackCreator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.contentdirectory.ui; 19 | 20 | import org.teleal.cling.controlpoint.ActionCallback; 21 | import org.teleal.cling.model.meta.Service; 22 | 23 | import javax.swing.tree.DefaultTreeModel; 24 | import javax.swing.tree.DefaultMutableTreeNode; 25 | 26 | /** 27 | * @author Christian Bauer 28 | */ 29 | public interface ContentBrowseActionCallbackCreator { 30 | 31 | public ActionCallback createContentBrowseActionCallback(Service service, 32 | DefaultTreeModel treeModel, 33 | DefaultMutableTreeNode treeNode); 34 | 35 | 36 | } 37 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/igd/callback/GetExternalIP.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.igd.callback; 19 | 20 | import org.teleal.cling.controlpoint.ActionCallback; 21 | import org.teleal.cling.model.action.ActionInvocation; 22 | import org.teleal.cling.model.meta.Service; 23 | 24 | /** 25 | * @author Christian Bauer 26 | */ 27 | public abstract class GetExternalIP extends ActionCallback { 28 | 29 | public GetExternalIP(Service service) { 30 | super(new ActionInvocation(service.getAction("GetExternalIPAddress"))); 31 | } 32 | 33 | @Override 34 | public void success(ActionInvocation invocation) { 35 | success((String)invocation.getOutput("NewExternalIPAddress").getValue()); 36 | } 37 | 38 | protected abstract void success(String externalIPAddress); 39 | } 40 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/lastchange/EventedValueShort.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.lastchange; 19 | 20 | import org.teleal.cling.model.types.Datatype; 21 | 22 | import java.util.Map; 23 | 24 | /** 25 | * @author Christian Bauer 26 | */ 27 | public class EventedValueShort extends EventedValue { 28 | 29 | public EventedValueShort(Short value) { 30 | super(value); 31 | } 32 | 33 | public EventedValueShort(Map.Entry[] attributes) { 34 | super(attributes); 35 | } 36 | 37 | @Override 38 | protected Datatype getDatatype() { 39 | return Datatype.Builtin.I2_SHORT.getDatatype(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/lastchange/EventedValueString.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.lastchange; 19 | 20 | import org.teleal.cling.model.types.Datatype; 21 | import org.teleal.cling.model.types.StringDatatype; 22 | 23 | import java.util.Map; 24 | 25 | /** 26 | * @author Christian Bauer 27 | */ 28 | public class EventedValueString extends EventedValue { 29 | 30 | public EventedValueString(String value) { 31 | super(value); 32 | } 33 | 34 | public EventedValueString(Map.Entry[] attributes) { 35 | super(attributes); 36 | } 37 | 38 | @Override 39 | protected Datatype getDatatype() { 40 | return Datatype.Builtin.STRING.getDatatype(); 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/lastchange/EventedValueUnsignedIntegerFourBytes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.lastchange; 19 | 20 | import org.teleal.cling.model.types.Datatype; 21 | import org.teleal.cling.model.types.UnsignedIntegerFourBytes; 22 | 23 | import java.util.Map; 24 | 25 | /** 26 | * @author Christian Bauer 27 | */ 28 | public class EventedValueUnsignedIntegerFourBytes extends EventedValue { 29 | 30 | public EventedValueUnsignedIntegerFourBytes(UnsignedIntegerFourBytes value) { 31 | super(value); 32 | } 33 | 34 | public EventedValueUnsignedIntegerFourBytes(Map.Entry[] attributes) { 35 | super(attributes); 36 | } 37 | 38 | @Override 39 | protected Datatype getDatatype() { 40 | return Datatype.Builtin.UI4.getDatatype(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/lastchange/EventedValueUnsignedIntegerTwoBytes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.lastchange; 19 | 20 | import org.teleal.cling.model.types.Datatype; 21 | import org.teleal.cling.model.types.UnsignedIntegerTwoBytes; 22 | 23 | import java.util.Map; 24 | 25 | /** 26 | * @author Christian Bauer 27 | */ 28 | public class EventedValueUnsignedIntegerTwoBytes extends EventedValue { 29 | 30 | public EventedValueUnsignedIntegerTwoBytes(UnsignedIntegerTwoBytes value) { 31 | super(value); 32 | } 33 | 34 | public EventedValueUnsignedIntegerTwoBytes(Map.Entry[] attributes) { 35 | super(attributes); 36 | } 37 | 38 | @Override 39 | protected Datatype getDatatype() { 40 | return Datatype.Builtin.UI2.getDatatype(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/messagebox/model/ElementAppender.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.messagebox.model; 19 | 20 | import org.teleal.cling.support.messagebox.parser.MessageElement; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public interface ElementAppender { 26 | 27 | public void appendMessageElements(MessageElement parent); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/model/BrowseFlag.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.model; 19 | 20 | /** 21 | * @author Alessio Gaeta 22 | * @author Christian Bauer 23 | */ 24 | public enum BrowseFlag { 25 | 26 | METADATA("BrowseMetadata"), 27 | DIRECT_CHILDREN("BrowseDirectChildren"); 28 | 29 | private String protocolString; 30 | 31 | BrowseFlag(String protocolString) { 32 | this.protocolString = protocolString; 33 | } 34 | 35 | @Override 36 | public String toString() { 37 | return protocolString; 38 | } 39 | 40 | public static BrowseFlag valueOrNullOf(String s) { 41 | for (BrowseFlag browseFlag : values()) { 42 | if (browseFlag.toString().equals(s)) 43 | return browseFlag; 44 | } 45 | return null; 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/model/Channel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.model; 19 | 20 | /** 21 | * 22 | */ 23 | public enum Channel { 24 | Master, 25 | LF, 26 | RF, 27 | CF, 28 | LFE, 29 | LS, 30 | RS, 31 | LFC, 32 | RFC, 33 | SD, 34 | SL, 35 | SR, 36 | T 37 | } 38 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/model/PersonWithRole.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.model; 19 | 20 | import org.w3c.dom.Element; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public class PersonWithRole extends Person { 26 | 27 | private String role; 28 | 29 | public PersonWithRole(String name) { 30 | super(name); 31 | } 32 | 33 | public PersonWithRole(String name, String role) { 34 | super(name); 35 | this.role = role; 36 | } 37 | 38 | public String getRole() { 39 | return role; 40 | } 41 | 42 | public void setOnElement(Element element) { 43 | element.setTextContent(toString()); 44 | String r = (getRole() != null) ? getRole() : ""; 45 | element.setAttribute("role", r); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/model/PlayMode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.model; 19 | 20 | /** 21 | * 22 | */ 23 | public enum PlayMode { 24 | NORMAL, 25 | SHUFFLE, 26 | REPEAT_ONE, 27 | REPEAT_ALL, 28 | RANDOM, 29 | DIRECT_1, 30 | INTRO 31 | } 32 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/model/PresetName.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.model; 19 | 20 | /** 21 | * 22 | */ 23 | public enum PresetName { 24 | FactoryDefault 25 | } 26 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/model/RecordMediumWriteStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.model; 19 | 20 | /** 21 | * 22 | */ 23 | public enum RecordMediumWriteStatus { 24 | 25 | WRITABLE, 26 | PROTECTED, 27 | NOT_WRITABLE, 28 | UNKNOWN, 29 | NOT_IMPLEMENTED; 30 | 31 | static public RecordMediumWriteStatus valueOrUnknownOf(String s) { 32 | try { 33 | return valueOf(s); 34 | } catch (IllegalArgumentException ex) { 35 | return UNKNOWN; 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/model/TransportStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.model; 19 | 20 | /** 21 | * 22 | */ 23 | public enum TransportStatus { 24 | 25 | OK, 26 | ERROR_OCCURED, 27 | CUSTOM; 28 | 29 | String value; 30 | 31 | TransportStatus() { 32 | this.value = name(); 33 | } 34 | 35 | public String getValue() { 36 | return value; 37 | } 38 | 39 | public TransportStatus setValue(String value) { 40 | this.value = value; 41 | return this; 42 | } 43 | 44 | public static TransportStatus valueOrCustomOf(String s) { 45 | try { 46 | return TransportStatus.valueOf(s); 47 | } catch (IllegalArgumentException ex) { 48 | return TransportStatus.CUSTOM.setValue(s); 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/model/VolumeDBRange.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.model; 19 | 20 | /** 21 | * 22 | */ 23 | public class VolumeDBRange { 24 | 25 | private Integer minValue; 26 | private Integer maxValue; 27 | 28 | public VolumeDBRange(Integer minValue, Integer maxValue) { 29 | this.minValue = minValue; 30 | this.maxValue = maxValue; 31 | } 32 | 33 | public Integer getMinValue() { 34 | return minValue; 35 | } 36 | 37 | public Integer getMaxValue() { 38 | return maxValue; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/model/WriteStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.model; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public enum WriteStatus { 24 | 25 | WRITABLE, 26 | NOT_WRITABLE, 27 | UNKNOWN, 28 | MIXED 29 | } 30 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/renderingcontrol/lastchange/ChannelMute.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.renderingcontrol.lastchange; 19 | 20 | import org.teleal.cling.support.model.Channel; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public class ChannelMute { 26 | 27 | protected Channel channel; 28 | protected Boolean mute; 29 | 30 | public ChannelMute(Channel channel, Boolean mute) { 31 | this.channel = channel; 32 | this.mute = mute; 33 | } 34 | 35 | public Channel getChannel() { 36 | return channel; 37 | } 38 | 39 | public Boolean getMute() { 40 | return mute; 41 | } 42 | 43 | @Override 44 | public String toString() { 45 | return "Mute: " + getMute() + " (" + getChannel() + ")"; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/renderingcontrol/lastchange/ChannelVolume.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.renderingcontrol.lastchange; 19 | 20 | import org.teleal.cling.support.model.Channel; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public class ChannelVolume { 26 | 27 | protected Channel channel; 28 | protected Integer volume; 29 | 30 | public ChannelVolume(Channel channel, Integer volume) { 31 | this.channel = channel; 32 | this.volume = volume; 33 | } 34 | 35 | public Channel getChannel() { 36 | return channel; 37 | } 38 | 39 | public Integer getVolume() { 40 | return volume; 41 | } 42 | 43 | @Override 44 | public String toString() { 45 | return "Volume: " + getVolume() + " (" + getChannel() + ")"; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/renderingcontrol/lastchange/ChannelVolumeDB.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.renderingcontrol.lastchange; 19 | 20 | import org.teleal.cling.support.model.Channel; 21 | 22 | /** 23 | * @author Christian Bauer 24 | */ 25 | public class ChannelVolumeDB { 26 | 27 | protected Channel channel; 28 | protected Integer volumeDB; 29 | 30 | public ChannelVolumeDB(Channel channel, Integer volumeDB) { 31 | this.channel = channel; 32 | this.volumeDB = volumeDB; 33 | } 34 | 35 | public Channel getChannel() { 36 | return channel; 37 | } 38 | 39 | public Integer getVolumeDB() { 40 | return volumeDB; 41 | } 42 | 43 | @Override 44 | public String toString() { 45 | return "VolumeDB: " + getVolumeDB() + " (" + getChannel() + ")"; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/shared/AWTExceptionHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.shared; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class AWTExceptionHandler { 24 | 25 | public void handle(Throwable ex) { 26 | System.err.println("============= The application encountered an unrecoverable error, exiting... ============="); 27 | ex.printStackTrace(System.err); 28 | System.err.println("=========================================================================================="); 29 | System.exit(1); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/support/shared/TextExpandEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.support.shared; 19 | 20 | import org.teleal.common.swingfwk.DefaultEvent; 21 | 22 | 23 | public class TextExpandEvent extends DefaultEvent { 24 | 25 | public TextExpandEvent(String s) { 26 | super(s); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/transport/spi/DatagramIOConfiguration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.transport.spi; 19 | 20 | /** 21 | * Collection of typically needed configuration settings. 22 | * 23 | * @author Christian Bauer 24 | */ 25 | public interface DatagramIOConfiguration { 26 | 27 | /** 28 | * @return The TTL of a UDP datagram sent to a multicast address. 29 | */ 30 | public int getTimeToLive(); 31 | 32 | /** 33 | * @return The maximum buffer size of received UDP datagrams. 34 | */ 35 | public int getMaxDatagramBytes(); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/transport/spi/InitializationException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.transport.spi; 19 | 20 | /** 21 | * Thrown by the transport layer implementation when service setup fails. 22 | *

23 | * This exception typically indicates a configuration problem and it is not 24 | * recoverable unless you can continue without the service that threw this 25 | * exception. 26 | *

27 | * 28 | * @author Christian Bauer 29 | */ 30 | public class InitializationException extends RuntimeException { 31 | 32 | public InitializationException(String s) { 33 | super(s); 34 | } 35 | 36 | public InitializationException(String s, Throwable throwable) { 37 | super(s, throwable); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/transport/spi/MulticastReceiverConfiguration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.transport.spi; 19 | 20 | import java.net.InetAddress; 21 | 22 | /** 23 | * Collection of typically needed configuration settings. 24 | * 25 | * @author Christian Bauer 26 | */ 27 | public interface MulticastReceiverConfiguration { 28 | 29 | /** 30 | * @return The multicast group to join. 31 | */ 32 | public InetAddress getGroup(); 33 | 34 | /** 35 | * @return The port to listen on. 36 | */ 37 | public int getPort(); 38 | 39 | /** 40 | * @return The maximum buffer size of received UDP datagrams. 41 | */ 42 | public int getMaxDatagramBytes(); 43 | 44 | } 45 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/transport/spi/StreamClientConfiguration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.transport.spi; 19 | 20 | /** 21 | * Collection of typically needed configuration settings. 22 | * 23 | * @author Christian Bauer 24 | */ 25 | public interface StreamClientConfiguration { 26 | 27 | /** 28 | * @param majorVersion The UPnP UDA major version. 29 | * @param minorVersion The UPnP UDA minor version. 30 | * @return The HTTP user agent value. 31 | */ 32 | public String getUserAgentValue(int majorVersion, int minorVersion); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/transport/spi/StreamServerConfiguration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.transport.spi; 19 | 20 | /** 21 | * Collection of typically needed configuration settings. 22 | * 23 | * @author Christian Bauer 24 | */ 25 | public interface StreamServerConfiguration { 26 | 27 | /** 28 | * @return The TCP port to listen on for HTTP requests. 29 | */ 30 | public int getListenPort(); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/cling/transport/spi/UnsupportedDataException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.cling.transport.spi; 19 | 20 | /** 21 | * Thrown by processors/converters when errors occured. 22 | *

23 | * This exception indicates that received data was in an invalid format and/or could 24 | * not be parsed or converted. You typically can recover from this failure after 25 | * catching (and logging?) the exception. 26 | *

27 | * 28 | * @author Christian Bauer 29 | */ 30 | public class UnsupportedDataException extends RuntimeException { 31 | 32 | public UnsupportedDataException(String s) { 33 | super(s); 34 | } 35 | 36 | public UnsupportedDataException(String s, Throwable throwable) { 37 | super(s, throwable); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/jdoc/EasyDoclet$LogWriter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/jdoc/EasyDoclet$LogWriter.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/jdoc/EasyDoclet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/jdoc/EasyDoclet.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/mock/http/DelegatingServletInputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/mock/http/DelegatingServletInputStream.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/mock/http/DelegatingServletOutputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/mock/http/DelegatingServletOutputStream.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/mock/http/HeaderValueHolder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/mock/http/HeaderValueHolder.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/mock/http/IteratorEnumeration.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/mock/http/IteratorEnumeration.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/mock/http/MockHttpServletRequest$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/mock/http/MockHttpServletRequest$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/mock/http/MockHttpServletRequest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/mock/http/MockHttpServletRequest.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/mock/http/MockHttpServletResponse$ResponsePrintWriter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/mock/http/MockHttpServletResponse$ResponsePrintWriter.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/mock/http/MockHttpServletResponse$ResponseServletOutputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/mock/http/MockHttpServletResponse$ResponseServletOutputStream.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/mock/http/MockHttpServletResponse.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/mock/http/MockHttpServletResponse.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/mock/http/MockHttpSession.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/mock/http/MockHttpSession.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/mock/http/MockRequestDispatcher.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/mock/http/MockRequestDispatcher.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/mock/http/MockServletContext.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/mock/http/MockServletContext.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/statemachine/StateMachine.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.common.statemachine; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public interface StateMachine { 24 | 25 | public static final String METHOD_CURRENT_STATE = "getCurrentState"; 26 | public static final String METHOD_FORCE_STATE = "forceState"; 27 | 28 | public S getCurrentState(); 29 | public void forceState(Class state); 30 | } 31 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/statemachine/States.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.common.statemachine; 19 | 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Retention; 22 | import java.lang.annotation.ElementType; 23 | import java.lang.annotation.Target; 24 | import java.lang.annotation.Inherited; 25 | 26 | /** 27 | * @author Christian Bauer 28 | */ 29 | @Retention(value= RetentionPolicy.RUNTIME) 30 | @Inherited 31 | @Target(ElementType.TYPE) 32 | public @interface States { 33 | 34 | Class[] value(); 35 | 36 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/statemachine/TransitionException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.common.statemachine; 19 | 20 | /** 21 | * @author Christian Bauer 22 | */ 23 | public class TransitionException extends RuntimeException { 24 | 25 | public TransitionException(String s) { 26 | super(s); 27 | } 28 | 29 | public TransitionException(String s, Throwable throwable) { 30 | super(s, throwable); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/swingfwk/ClosableTabbedPaneListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | 18 | package org.teleal.common.swingfwk; 19 | 20 | import java.util.EventListener; 21 | 22 | /** 23 | * The listener that's notified when an tab should be closed in the 24 | * CloseableTabbedPane. 25 | */ 26 | public interface ClosableTabbedPaneListener extends EventListener { 27 | /** 28 | * Informs all CloseableTabbedPaneListeners when a tab should be 29 | * closed 30 | * 31 | * @param tabIndexToClose the index of the tab which should be closed 32 | * @return true if the tab can be closed, false otherwise 33 | */ 34 | boolean closeTab(int tabIndexToClose); 35 | } -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/swingfwk/DefaultAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | package org.teleal.common.swingfwk; 18 | 19 | import javax.swing.AbstractAction; 20 | import java.awt.event.ActionEvent; 21 | 22 | /** 23 | * An action without database transaction demarcation. 24 | * 25 | * @author Christian Bauer 26 | */ 27 | public abstract class DefaultAction extends AbstractAction { 28 | 29 | public void executeInController(Controller controller, ActionEvent event) { 30 | actionPerformed(event); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/swingfwk/DefaultEventListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | package org.teleal.common.swingfwk; 18 | 19 | /** 20 | * A listener for a particular event, needs parameterization for typesafe usage of the payload. 21 | * 22 | * @author Christian Bauer 23 | */ 24 | public interface DefaultEventListener extends EventListener> { 25 | public void handleEvent(DefaultEvent event); 26 | } 27 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/swingfwk/Event.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | package org.teleal.common.swingfwk; 18 | 19 | public interface Event { 20 | 21 | public PAYLOAD getPayload(); 22 | 23 | void addFiredInController(Controller seenController); 24 | 25 | boolean alreadyFired(Controller controller); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/swingfwk/EventListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | package org.teleal.common.swingfwk; 18 | 19 | public interface EventListener { 20 | 21 | public void handleEvent(E event); 22 | } 23 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/swingfwk/Node.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | package org.teleal.common.swingfwk; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * A contract that can be used to represent a hierarchical data structure. 23 | * 24 | * @author Christian Bauer 25 | */ 26 | public interface Node { 27 | 28 | public Long getId(); 29 | public T getParent(); 30 | public List getChildren(); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/util/ByteArray.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | package org.teleal.common.util; 18 | 19 | /** 20 | * @author Christian Bauer 21 | */ 22 | public class ByteArray { 23 | 24 | public static byte[] toPrimitive(Byte[] array) { 25 | byte[] bytes = new byte[array.length]; 26 | for (int i = 0; i < array.length; i++) { 27 | bytes[i] = array[i]; 28 | } 29 | return bytes; 30 | } 31 | 32 | public static Byte[] toWrapper(byte[] array) { 33 | Byte[] wrappers = new Byte[array.length]; 34 | for (int i = 0; i < array.length; i++) { 35 | wrappers[i] = array[i]; 36 | } 37 | return wrappers; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/util/Exceptions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Teleal GmbH, Switzerland 3 | * 4 | * This program is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation, either version 3 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program. If not, see . 16 | */ 17 | package org.teleal.common.util; 18 | 19 | /** 20 | * @author Christian Bauer 21 | */ 22 | public class Exceptions { 23 | 24 | public static Throwable unwrap(Throwable throwable) throws IllegalArgumentException { 25 | if (throwable == null) { 26 | throw new IllegalArgumentException("Cannot unwrap null throwable"); 27 | } 28 | for (Throwable current = throwable; current != null; current = current.getCause()) { 29 | throwable = current; 30 | } 31 | return throwable; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/Anchor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/Anchor.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/Body.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/Body.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/Head$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/Head$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/Head$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/Head$2.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/Head.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/Head.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/Href.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/Href.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/Link.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/Link.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/Meta.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/Meta.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/Option.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/Option.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/Root$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/Root$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/Root$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/Root$2.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/Root.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/Root.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/XHTML$ATTR.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/XHTML$ATTR.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/XHTML$ELEMENT.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/XHTML$ELEMENT.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/XHTML.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/XHTML.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/XHTMLElement$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/XHTMLElement$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/XHTMLElement$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/XHTMLElement$2.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/XHTMLElement.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/XHTMLElement.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/XHTMLParser$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/XHTMLParser$1.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/XHTMLParser$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/XHTMLParser$2.class -------------------------------------------------------------------------------- /VoiceChat_Server/src/org/teleal/common/xhtml/XHTMLParser.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kumarbusem/Java-Voice-Chat/cda1af9e438caea8d4339a6d01422e4cc8b15d85/VoiceChat_Server/src/org/teleal/common/xhtml/XHTMLParser.class --------------------------------------------------------------------------------