Author: lischke Date: Fri Jan 14 11:13:14 2005 New Revision: 125198 URL: http://svn.apache.org/viewcvs?view=rev&rev=125198 Log: added first api proposal Added: incubator/hermes/trunk/src/java/org/apache/ws/pubsub/ incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Filter.java incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationConsumer.java incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationConsumerFactory.java incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationProducer.java incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Status.java incubator/hermes/trunk/src/java/org/apache/ws/pubsub/SubscriptionManager.java incubator/hermes/trunk/src/java/org/apache/ws/pubsub/TopicFilter.java incubator/hermes/trunk/src/java/org/apache/ws/pubsub/XPathFilter.java
Added: incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Filter.java Url: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Filter.java?view=auto&rev=125198 ============================================================================== --- (empty file) +++ incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Filter.java Fri Jan 14 11:13:14 2005 @@ -0,0 +1,30 @@ +/* + * Copyright 2001-2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.ws.pubsub; + +import java.util.Arrays; +public interface Filter { + String getDialect(); + void setDialect(String dialect); + + String getValue(); + void setValue(String value); + + /** + [EMAIL PROTECTED] aggregation + * @associates <{Filter}> + */ +} Added: incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationConsumer.java Url: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationConsumer.java?view=auto&rev=125198 ============================================================================== --- (empty file) +++ incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationConsumer.java Fri Jan 14 11:13:14 2005 @@ -0,0 +1,30 @@ +/* + * Copyright 2001-2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.ws.pubsub; + +import org.apache.axis.message.addressing.EndpointReference; +public interface NotificationConsumer { + + EndpointReference getEPR(); + void setEPR(EndpointReference epr); + + int getMode(); + void setMode(int mode); + + void deliver(Filter f, EndpointReference epr, Object message); + + void end(); +} Added: incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationConsumerFactory.java Url: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationConsumerFactory.java?view=auto&rev=125198 ============================================================================== --- (empty file) +++ incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationConsumerFactory.java Fri Jan 14 11:13:14 2005 @@ -0,0 +1,20 @@ +/* + * Copyright 2001-2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.ws.pubsub; + +public interface NotificationConsumerFactory { + NotificationConsumer createNotificationConsumer(); +} Added: incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationProducer.java Url: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationProducer.java?view=auto&rev=125198 ============================================================================== --- (empty file) +++ incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationProducer.java Fri Jan 14 11:13:14 2005 @@ -0,0 +1,25 @@ +/* + * Copyright 2001-2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.ws.pubsub; +import org.apache.axis.message.addressing.EndpointReference; +public interface NotificationProducer { + SubscriptionManager subscribe( EndpointReference notificationProducerEPR, + NotificationConsumer notificationConsumer, + Filter filters[], + int initialTerminationTime); + + Object getCurrentMessage(EndpointReference notificationProducerEPR, Filter filters[]); +} Added: incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Status.java Url: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Status.java?view=auto&rev=125198 ============================================================================== --- (empty file) +++ incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Status.java Fri Jan 14 11:13:14 2005 @@ -0,0 +1,26 @@ +/* + * Copyright 2001-2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.ws.pubsub; + +public interface Status { + String getConsumerReference(); + String getTopicExpression(); + String getUseNotify(); + String getPrecondition(); + String getSelector(); + String getSubscriptionPolicy(); + String getCreationTime(); +} Added: incubator/hermes/trunk/src/java/org/apache/ws/pubsub/SubscriptionManager.java Url: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/pubsub/SubscriptionManager.java?view=auto&rev=125198 ============================================================================== --- (empty file) +++ incubator/hermes/trunk/src/java/org/apache/ws/pubsub/SubscriptionManager.java Fri Jan 14 11:13:14 2005 @@ -0,0 +1,28 @@ +/* + * Copyright 2001-2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.ws.pubsub; + +public interface SubscriptionManager { + void pause(); + + void resume(); + + void setTerminationTime(); + + void unsubscribe(); + + Status GetStatus(); +} Added: incubator/hermes/trunk/src/java/org/apache/ws/pubsub/TopicFilter.java Url: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/pubsub/TopicFilter.java?view=auto&rev=125198 ============================================================================== --- (empty file) +++ incubator/hermes/trunk/src/java/org/apache/ws/pubsub/TopicFilter.java Fri Jan 14 11:13:14 2005 @@ -0,0 +1,19 @@ +/* + * Copyright 2001-2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.ws.pubsub; + +public interface TopicFilter extends Filter { +} Added: incubator/hermes/trunk/src/java/org/apache/ws/pubsub/XPathFilter.java Url: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/pubsub/XPathFilter.java?view=auto&rev=125198 ============================================================================== --- (empty file) +++ incubator/hermes/trunk/src/java/org/apache/ws/pubsub/XPathFilter.java Fri Jan 14 11:13:14 2005 @@ -0,0 +1,19 @@ +/* + * Copyright 2001-2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.ws.pubsub; + +public interface XPathFilter extends Filter { +} --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
