index int64 0 0 | repo_id stringlengths 9 205 | file_path stringlengths 31 246 | content stringlengths 1 12.2M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/MessageConsumer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface MessageConsumer extends AutoCloseable {
String getMessageSelector() throws JMSException;
MessageListener getMessageListener() throws JMSException;
void setMessageListener(MessageListener listener) throws JMSException;
Message receive() throws JMSException;
Message receive(long timeout) throws JMSException;
Message receiveNoWait() throws JMSException;
void close() throws JMSException;
}
| 300 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/TopicRequestor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class TopicRequestor {
private TopicSession session;
private Topic topic;
private TemporaryTopic temporaryTopic;
private TopicPublisher publisher;
private TopicSubscriber subscriber;
public TopicRequestor(TopicSession session, Topic topic) throws JMSException {
if(!Topic.class.isInstance(topic)) {
throw new InvalidDestinationException("Invalid topic");
}
setSession(session);
setTopic(topic);
setTemporaryTopic(session.createTemporaryTopic());
setPublisher(session.createPublisher(topic));
setSubscriber(session.createSubscriber(getTemporaryTopic()));
}
public Message request(Message message) throws JMSException {
message.setJMSReplyTo(getTemporaryTopic());
getPublisher().publish(message);
return (getSubscriber().receive());
}
public void close() throws JMSException {
getSession().close();
getTemporaryTopic().delete();
}
private void setPublisher(TopicPublisher publisher) {
this.publisher = publisher;
}
private TopicPublisher getPublisher() {
return publisher;
}
private void setSession(TopicSession session) {
this.session = session;
}
private TopicSession getSession() {
return session;
}
private void setSubscriber(TopicSubscriber subscriber) {
this.subscriber = subscriber;
}
private TopicSubscriber getSubscriber() {
return subscriber;
}
private void setTemporaryTopic(TemporaryTopic temporaryTopic) {
this.temporaryTopic = temporaryTopic;
}
private TemporaryTopic getTemporaryTopic() {
return temporaryTopic;
}
private void setTopic(Topic topic) {
this.topic = topic;
}
private Topic getTopic() {
return topic;
}
}
| 301 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicSession.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface XATopicSession extends XASession {
TopicSession getTopicSession() throws JMSException;
}
| 302 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/InvalidSelectorException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class InvalidSelectorException extends JMSException {
public InvalidSelectorException(String reason, String errorCode) {
super(reason, errorCode);
}
public InvalidSelectorException(String reason) {
this(reason, null);
}
}
| 303 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/InvalidClientIDRuntimeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class InvalidClientIDRuntimeException extends JMSRuntimeException {
public InvalidClientIDRuntimeException(String message) {
super(message);
}
public InvalidClientIDRuntimeException(String message, String errorCode) {
super(message, errorCode);
}
public InvalidClientIDRuntimeException(String message, String errorCode, Throwable cause) {
super(message, errorCode, cause);
}
}
| 304 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/ObjectMessage.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import java.io.Serializable;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface ObjectMessage extends Message {
void setObject(Serializable object) throws JMSException;
Serializable getObject() throws JMSException;
}
| 305 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/JMSConnectionFactoryDefinitions.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Retention(RUNTIME)
@Target(TYPE)
public @interface JMSConnectionFactoryDefinitions {
JMSConnectionFactoryDefinition[] value();
}
| 306 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/TextMessage.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface TextMessage extends Message {
void setText(String string) throws JMSException;
String getText() throws JMSException;
}
| 307 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/JMSPasswordCredential.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Retention(RUNTIME)
@Target({METHOD, FIELD, PARAMETER, TYPE})
public @interface JMSPasswordCredential {
String userName();
String password();
}
| 308 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/MessageProducer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface MessageProducer extends AutoCloseable {
void setDisableMessageID(boolean value) throws JMSException;
boolean getDisableMessageID() throws JMSException;
void setDisableMessageTimestamp(boolean value) throws JMSException;
boolean getDisableMessageTimestamp() throws JMSException;
void setDeliveryMode(int deliveryMode) throws JMSException;
int getDeliveryMode() throws JMSException;
void setPriority(int defaultPriority) throws JMSException;
int getPriority() throws JMSException;
void setTimeToLive(long timeToLive) throws JMSException;
long getTimeToLive() throws JMSException;
Destination getDestination() throws JMSException;
void close() throws JMSException;
void send(Message message) throws JMSException;
void send(Message message, int deliveryMode, int priority, long timeToLive)
throws JMSException;
void send(Destination destination, Message message) throws JMSException;
void send(Message message, CompletionListener completionListener) throws JMSException;
void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive)
throws JMSException;
void send(Destination destination, Message message, CompletionListener completionListener) throws JMSException;
void send(Message message, int deliveryMode, int priority, long timeToLive,
CompletionListener completionListener) throws JMSException;
void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive,
CompletionListener completionListener) throws JMSException;
long getDeliveryDelay() throws JMSException;
void setDeliveryDelay(long deliveryDelay) throws JMSException;
}
| 309 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/ServerSession.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface ServerSession {
Session getSession() throws JMSException;
void start() throws JMSException;
}
| 310 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/TopicPublisher.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
public interface TopicPublisher extends MessageProducer {
Topic getTopic() throws JMSException;
void publish(Message message) throws JMSException;
void publish(
Message message,
int deliveryMode,
int priority,
long timeToLive)
throws JMSException;
void publish(Topic topic, Message message) throws JMSException;
void publish(
Topic topic,
Message message,
int deliveryMode,
int priority,
long timeToLive)
throws JMSException;
}
| 311 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/TopicSubscriber.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface TopicSubscriber extends MessageConsumer {
Topic getTopic() throws JMSException;
boolean getNoLocal() throws JMSException;
}
| 312 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicConnectionFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface XATopicConnectionFactory
extends XAConnectionFactory, TopicConnectionFactory {
XATopicConnection createXATopicConnection() throws JMSException;
XATopicConnection createXATopicConnection(String userName, String password)
throws JMSException;
}
| 313 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/MessageListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface MessageListener {
void onMessage(Message message);
}
| 314 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/TemporaryTopic.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface TemporaryTopic extends Topic {
void delete() throws JMSException;
}
| 315 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionRolledBackException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class TransactionRolledBackException extends JMSException {
public TransactionRolledBackException(String reason, String errorCode) {
super(reason, errorCode);
}
public TransactionRolledBackException(String reason) {
this(reason, null);
}
}
| 316 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAConnectionFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface XAConnectionFactory {
XAConnection createXAConnection() throws JMSException;
XAConnection createXAConnection(String userName, String password)
throws JMSException;
XAJMSContext createXAContext();
XAJMSContext createXAContext(String userName, String password);
}
| 317 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/ResourceAllocationException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class ResourceAllocationException extends JMSException {
public ResourceAllocationException(String reason, String errorCode) {
super(reason, errorCode);
}
public ResourceAllocationException(String reason) {
this(reason, null);
}
}
| 318 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/QueueReceiver.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface QueueReceiver extends MessageConsumer {
Queue getQueue() throws JMSException;
}
| 319 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/XASession.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import javax.transaction.xa.XAResource;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface XASession extends Session {
Session getSession() throws JMSException;
XAResource getXAResource();
boolean getTransacted() throws JMSException;
void commit() throws JMSException;
void rollback() throws JMSException;
}
| 320 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/TopicConnectionFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface TopicConnectionFactory extends ConnectionFactory {
TopicConnection createTopicConnection() throws JMSException;
TopicConnection createTopicConnection(String userName, String password)
throws JMSException;
}
| 321 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/QueueRequestor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class QueueRequestor {
private QueueSession session;
private TemporaryQueue temporaryQueue;
private QueueSender sender;
private QueueReceiver receiver;
public QueueRequestor(QueueSession session, Queue queue)
throws JMSException
{
if(!Queue.class.isInstance(queue)) {
throw new InvalidDestinationException("Invalid queue");
}
setSession(session);
setTemporaryQueue(session.createTemporaryQueue());
setSender(session.createSender(queue));
setReceiver(session.createReceiver(getTemporaryQueue()));
}
public Message request(Message message) throws JMSException {
message.setJMSReplyTo(getTemporaryQueue());
getSender().send(message);
return getReceiver().receive();
}
public void close() throws JMSException {
getSession().close();
getTemporaryQueue().delete();
}
private void setReceiver(QueueReceiver receiver) {
this.receiver = receiver;
}
private QueueReceiver getReceiver() {
return receiver;
}
private void setSender(QueueSender sender) {
this.sender = sender;
}
private QueueSender getSender() {
return sender;
}
private void setSession(QueueSession session) {
this.session = session;
}
private QueueSession getSession() {
return session;
}
private void setTemporaryQueue(TemporaryQueue temporaryQueue) {
this.temporaryQueue = temporaryQueue;
}
private TemporaryQueue getTemporaryQueue() {
return temporaryQueue;
}
}
| 322 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/Queue.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface Queue extends Destination {
String getQueueName() throws JMSException;
String toString();
}
| 323 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/QueueBrowser.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import java.util.Enumeration;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface QueueBrowser extends AutoCloseable{
Queue getQueue() throws JMSException;
String getMessageSelector() throws JMSException;
Enumeration getEnumeration() throws JMSException;
void close() throws JMSException;
}
| 324 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueConnectionFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface XAQueueConnectionFactory
extends XAConnectionFactory, QueueConnectionFactory {
XAQueueConnection createXAQueueConnection() throws JMSException;
XAQueueConnection createXAQueueConnection(String userName, String password)
throws JMSException;
}
| 325 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAConnection.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface XAConnection extends Connection {
XASession createXASession() throws JMSException;
Session createSession(boolean transacted, int acknowledgeMode)
throws JMSException;
}
| 326 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/ResourceAllocationRuntimeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
public class ResourceAllocationRuntimeException extends JMSRuntimeException {
public ResourceAllocationRuntimeException(String message) {
super(message);
}
public ResourceAllocationRuntimeException(String message, String errorCode) {
super(message, errorCode);
}
public ResourceAllocationRuntimeException(String message, String errorCode, Throwable cause) {
super(message, errorCode, cause);
}
}
| 327 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/JMSConnectionFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Retention(RUNTIME)
@Target({METHOD, FIELD, PARAMETER, TYPE})
public @interface JMSConnectionFactory {
String value();
}
| 328 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionInProgressException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class TransactionInProgressException extends JMSException {
public TransactionInProgressException(String reason, String errorCode) {
super(reason, errorCode);
}
public TransactionInProgressException(String reason) {
this(reason, null);
}
}
| 329 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/CompletionListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* A CompletionListener is implemented by the application and may be specified when a message is sent asynchronously.
* When the sending of the message is complete, the JMS provider notifies the application by calling the onCompletion(Message) method of the specified completion listener. If the sending if the message fails for any reason, and an exception cannot be thrown by the send method, then the JMS provider calls the onException(Exception) method of the specified completion listener.
*/
public interface CompletionListener {
void onCompletion(Message message);
void onException(Message message, Exception exception);
}
| 330 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/MessageFormatRuntimeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
public class MessageFormatRuntimeException extends JMSRuntimeException {
public MessageFormatRuntimeException(String message) {
super(message);
}
public MessageFormatRuntimeException(String message, String errorCode) {
super(message, errorCode);
}
public MessageFormatRuntimeException(String message, String errorCode, Throwable cause) {
super(message, errorCode, cause);
}
}
| 331 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/Destination.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface Destination {
}
| 332 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/MessageNotReadableException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class MessageNotReadableException extends JMSException {
public MessageNotReadableException(String reason, String errorCode) {
super(reason, errorCode);
}
public MessageNotReadableException(String reason) {
this(reason, null);
}
}
| 333 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/StreamMessage.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface StreamMessage extends Message {
boolean readBoolean() throws JMSException;
byte readByte() throws JMSException;
short readShort() throws JMSException;
char readChar() throws JMSException;
int readInt() throws JMSException;
long readLong() throws JMSException;
float readFloat() throws JMSException;
double readDouble() throws JMSException;
String readString() throws JMSException;
int readBytes(byte[] value) throws JMSException;
Object readObject() throws JMSException;
void writeBoolean(boolean value) throws JMSException;
void writeByte(byte value) throws JMSException;
void writeShort(short value) throws JMSException;
void writeChar(char value) throws JMSException;
void writeInt(int value) throws JMSException;
void writeLong(long value) throws JMSException;
void writeFloat(float value) throws JMSException;
void writeDouble(double value) throws JMSException;
void writeString(String value) throws JMSException;
void writeBytes(byte[] value) throws JMSException;
void writeBytes(byte[] value, int offset, int length) throws JMSException;
void writeObject(Object value) throws JMSException;
void reset() throws JMSException;
}
| 334 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/QueueConnectionFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface QueueConnectionFactory extends ConnectionFactory {
QueueConnection createQueueConnection() throws JMSException;
QueueConnection createQueueConnection(String userName, String password)
throws JMSException;
}
| 335 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/InvalidDestinationRuntimeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
public class InvalidDestinationRuntimeException extends JMSRuntimeException {
public InvalidDestinationRuntimeException(String message) {
super(message);
}
public InvalidDestinationRuntimeException(String message, String errorCode) {
super(message, errorCode);
}
public InvalidDestinationRuntimeException(String message, String errorCode, Throwable cause) {
super(message, errorCode, cause);
}
}
| 336 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/InvalidDestinationException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class InvalidDestinationException extends JMSException {
public InvalidDestinationException(String reason, String errorCode) {
super(reason, errorCode);
}
public InvalidDestinationException(String reason) {
this(reason, null);
}
}
| 337 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/QueueSender.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface QueueSender extends MessageProducer {
Queue getQueue() throws JMSException;
void send(Message message) throws JMSException;
void send(Message message, int deliveryMode, int priority, long timeToLive)
throws JMSException;
void send(Queue queue, Message message) throws JMSException;
void send(
Queue queue,
Message message,
int deliveryMode,
int priority,
long timeToLive)
throws JMSException;
}
| 338 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/JMSSecurityException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class JMSSecurityException extends JMSException {
public JMSSecurityException(String reason, String errorCode) {
super(reason, errorCode);
}
public JMSSecurityException(String reason) {
this(reason, null);
}
}
| 339 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/JMSRuntimeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
/**
* Created by johnament on 10/5/14.
*/
public class JMSRuntimeException extends RuntimeException {
private String errorCode;
public JMSRuntimeException(String message) {
super(message);
}
public JMSRuntimeException(String message, String errorCode) {
this(message);
this.errorCode = errorCode;
}
public JMSRuntimeException(String message, String errorCode, Throwable cause) {
super(message, cause);
this.errorCode = errorCode;
}
public String getErrorCode() {
return this.errorCode;
}
}
| 340 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionInProgressRuntimeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
public class TransactionInProgressRuntimeException extends JMSRuntimeException {
public TransactionInProgressRuntimeException(String message) {
super(message);
}
public TransactionInProgressRuntimeException(String message, String errorCode) {
super(message, errorCode);
}
public TransactionInProgressRuntimeException(String message, String errorCode, Throwable cause) {
super(message, errorCode, cause);
}
}
| 341 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/JMSDestinationDefinition.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Retention(RUNTIME)
@Target(TYPE)
public @interface JMSDestinationDefinition {
String interfaceName();
String name();
String className() default "";
String resourceAdapter() default "";
String destinationName() default "";
String[] properties() default {};
String description() default "";
}
| 342 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/TemporaryQueue.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface TemporaryQueue extends Queue {
void delete() throws JMSException;
}
| 343 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/MapMessage.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import java.util.Enumeration;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface MapMessage extends Message {
boolean getBoolean(String name) throws JMSException;
byte getByte(String name) throws JMSException;
short getShort(String name) throws JMSException;
char getChar(String name) throws JMSException;
int getInt(String name) throws JMSException;
long getLong(String name) throws JMSException;
float getFloat(String name) throws JMSException;
double getDouble(String name) throws JMSException;
String getString(String name) throws JMSException;
byte[] getBytes(String name) throws JMSException;
Object getObject(String name) throws JMSException;
Enumeration getMapNames() throws JMSException;
void setBoolean(String name, boolean value) throws JMSException;
void setByte(String name, byte value) throws JMSException;
void setShort(String name, short value) throws JMSException;
void setChar(String name, char value) throws JMSException;
void setInt(String name, int value) throws JMSException;
void setLong(String name, long value) throws JMSException;
void setFloat(String name, float value) throws JMSException;
void setDouble(String name, double value) throws JMSException;
void setString(String name, String value) throws JMSException;
void setBytes(String name, byte[] value) throws JMSException;
void setBytes(String name, byte[] value, int offset, int length)
throws JMSException;
void setObject(String name, Object value) throws JMSException;
boolean itemExists(String name) throws JMSException;
}
| 344 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/ExceptionListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface ExceptionListener {
void onException(JMSException exception);
}
| 345 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/TopicConnection.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface TopicConnection extends Connection {
TopicSession createTopicSession(boolean transacted, int acknowledgeMode)
throws JMSException;
ConnectionConsumer createConnectionConsumer(
Topic topic,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException;
ConnectionConsumer createDurableConnectionConsumer(
Topic topic,
String subscriptionName,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException;
}
| 346 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/MessageNotWriteableException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class MessageNotWriteableException extends JMSException {
public MessageNotWriteableException(String reason, String errorCode) {
super(reason, errorCode);
}
public MessageNotWriteableException(String reason) {
this(reason, null);
}
}
| 347 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueConnection.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface XAQueueConnection extends XAConnection, QueueConnection {
XAQueueSession createXAQueueSession() throws JMSException;
QueueSession createQueueSession(boolean transacted, int acknowledgeMode)
throws JMSException;
}
| 348 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/JMSConnectionFactoryDefinition.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Retention(RUNTIME)
@Target(TYPE)
public @interface JMSConnectionFactoryDefinition {
String name();
String className() default "";
String resourceAdapter() default "";
String user() default "";
String password() default "";
String clientId() default "";
String[] properties() default {};
boolean transactional() default true;
int maxPoolSize() default -1;
int minPoolSize() default -1;
String description() default "";
String interfaceName() default "";
}
| 349 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/MessageFormatException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class MessageFormatException extends JMSException {
public MessageFormatException(String reason, String errorCode) {
super(reason, errorCode);
}
public MessageFormatException(String reason) {
this(reason, null);
}
}
| 350 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/QueueSession.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface QueueSession extends Session {
Queue createQueue(String queueName) throws JMSException;
QueueReceiver createReceiver(Queue queue) throws JMSException;
QueueReceiver createReceiver(Queue queue, String messageSelector)
throws JMSException;
QueueSender createSender(Queue queue) throws JMSException;
QueueBrowser createBrowser(Queue queue) throws JMSException;
QueueBrowser createBrowser(Queue queue, String messageSelector)
throws JMSException;
TemporaryQueue createTemporaryQueue() throws JMSException;
}
| 351 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/JMSSecurityRuntimeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
public class JMSSecurityRuntimeException extends JMSRuntimeException {
public JMSSecurityRuntimeException(String message) {
super(message);
}
public JMSSecurityRuntimeException(String message, String errorCode) {
super(message, errorCode);
}
public JMSSecurityRuntimeException(String message, String errorCode, Throwable cause) {
super(message, errorCode, cause);
}
}
| 352 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/Connection.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface Connection extends AutoCloseable{
Session createSession(boolean transacted, int acknowledgeMode)
throws JMSException;
Session createSession(int sessionMode) throws JMSException;
Session createSession() throws JMSException;
String getClientID() throws JMSException;
void setClientID(String clientID) throws JMSException;
ConnectionMetaData getMetaData() throws JMSException;
ExceptionListener getExceptionListener() throws JMSException;
void setExceptionListener(ExceptionListener listener) throws JMSException;
void start() throws JMSException;
void stop() throws JMSException;
void close() throws JMSException;
ConnectionConsumer createConnectionConsumer(
Destination destination,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException;
ConnectionConsumer createDurableConnectionConsumer(
Topic topic,
String subscriptionName,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException;
ConnectionConsumer createSharedDurableConnectionConsumer(Topic topic,
String subscriptionName,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages) throws JMSException;
ConnectionConsumer createSharedConnectionConsumer(Topic topic,
String subscriptionName,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages) throws JMSException;
}
| 353 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueSession.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface XAQueueSession extends XASession {
QueueSession getQueueSession() throws JMSException;
}
| 354 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/Topic.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface Topic extends Destination {
String getTopicName() throws JMSException;
String toString();
}
| 355 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/ServerSessionPool.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface ServerSessionPool {
ServerSession getServerSession() throws JMSException;
}
| 356 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/MessageEOFException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class MessageEOFException extends JMSException {
public MessageEOFException(String reason, String errorCode) {
super(reason, errorCode);
}
public MessageEOFException(String reason) {
this(reason, null);
}
}
| 357 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/MessageNotWriteableRuntimeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
public class MessageNotWriteableRuntimeException extends JMSRuntimeException {
public MessageNotWriteableRuntimeException(String message) {
super(message);
}
public MessageNotWriteableRuntimeException(String message, String errorCode) {
super(message, errorCode);
}
public MessageNotWriteableRuntimeException(String message, String errorCode, Throwable cause) {
super(message, errorCode, cause);
}
}
| 358 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/JMSSessionMode.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Retention(RUNTIME)
@Target({METHOD, FIELD, PARAMETER, TYPE})
public @interface JMSSessionMode {
int value() default JMSContext.AUTO_ACKNOWLEDGE;
}
| 359 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionRolledBackRuntimeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
public class TransactionRolledBackRuntimeException extends JMSRuntimeException {
public TransactionRolledBackRuntimeException(String message) {
super(message);
}
public TransactionRolledBackRuntimeException(String message, String errorCode) {
super(message, errorCode);
}
public TransactionRolledBackRuntimeException(String message, String errorCode, Throwable cause) {
super(message, errorCode, cause);
}
}
| 360 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/ConnectionConsumer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface ConnectionConsumer {
ServerSessionPool getServerSessionPool() throws JMSException;
void close() throws JMSException;
}
| 361 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/JMSException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class JMSException extends Exception {
private String errorCode;
private Exception linkedException;
public JMSException(String reason, String errorCode) {
super(reason);
this.errorCode = errorCode;
linkedException = null;
}
public JMSException(String reason) {
this(reason, null);
linkedException = null;
}
public String getErrorCode() {
return errorCode;
}
public Exception getLinkedException() {
return linkedException;
}
/*
* Although not specified in the JavaDoc, this method need to be
* declared synchronized to make the serialUID the same as for
* the RI. However, given that the setter is not synchronized
* this may be problematic on some platforms.
*/
public synchronized void setLinkedException(Exception ex) {
linkedException = ex;
}
}
| 362 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/InvalidClientIDException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class InvalidClientIDException extends JMSException {
public InvalidClientIDException(String reason, String errorCode) {
super(reason, errorCode);
}
public InvalidClientIDException(String reason) {
this(reason, null);
}
}
| 363 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/DeliveryMode.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface DeliveryMode {
static final int NON_PERSISTENT = 1;
static final int PERSISTENT = 2;
}
| 364 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/ConnectionFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface ConnectionFactory {
Connection createConnection() throws JMSException;
Connection createConnection(String userName, String password)
throws JMSException;
/**
* Creates a JMSContext with the default identity.
*/
JMSContext createContext();
JMSContext createContext(int sessionMode);
JMSContext createContext(String userName, String password);
JMSContext createContext(String userName, String password, int sessionMode);
}
| 365 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/JMSDestinationDefinitions.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Retention(RUNTIME)
@Target(TYPE)
public @interface JMSDestinationDefinitions {
JMSDestinationDefinition[] value();
}
| 366 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/ConnectionMetaData.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import java.util.Enumeration;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface ConnectionMetaData {
String getJMSVersion() throws JMSException;
int getJMSMajorVersion() throws JMSException;
int getJMSMinorVersion() throws JMSException;
String getJMSProviderName() throws JMSException;
String getProviderVersion() throws JMSException;
int getProviderMajorVersion() throws JMSException;
int getProviderMinorVersion() throws JMSException;
Enumeration getJMSXPropertyNames() throws JMSException;
}
| 367 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/JMSContext.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
import java.io.Serializable;
/**
* Created by johnament on 10/5/14.
*/
public interface JMSContext extends AutoCloseable {
public static final int AUTO_ACKNOWLEDGE = 1;
public static final int CLIENT_ACKNOWLEDGE = 2;
public static final int DUPS_OK_ACKNOWLEDGE = 3;
public static final int SESSION_TRANSACTED = 0;
void acknowledge();
void close();
void commit();
QueueBrowser createBrowser(Queue queue);
QueueBrowser createBrowser(Queue queue, String messageSelector);
BytesMessage createBytesMessage();
JMSConsumer createConsumer(Destination destination);
JMSConsumer createConsumer(Destination destination, String messageSelector);
JMSConsumer createConsumer(Destination destination, String messageSelector, boolean noLocal);
JMSContext createContext(int sessionMode);
JMSConsumer createDurableConsumer(Topic topic, String name);
JMSConsumer createDurableConsumer(Topic topic, String name, String messageSelector, boolean noLocal);
MapMessage createMapMessage();
Message createMessage();
ObjectMessage createObjectMessage();
ObjectMessage createObjectMessage(Serializable object);
JMSProducer createProducer();
Queue createQueue(String queueName);
JMSConsumer createSharedConsumer(Topic topic, String sharedSubscriptionName);
JMSConsumer createSharedConsumer(Topic topic, String sharedSubscriptionName, String messageSelector);
JMSConsumer createSharedDurableConsumer(Topic topic, String name);
JMSConsumer createSharedDurableConsumer(Topic topic, String name, String messageSelector);
StreamMessage createStreamMessage();
TemporaryQueue createTemporaryQueue();
TemporaryTopic createTemporaryTopic();
TextMessage createTextMessage();
TextMessage createTextMessage(String text);
Topic createTopic(String topicName);
boolean getAutoStart();
String getClientID();
ExceptionListener getExceptionListener();
ConnectionMetaData getMetaData();
int getSessionMode();
boolean getTransacted();
void recover();
void rollback();
void setAutoStart(boolean autoStart);
void setClientID(String clientID);
void setExceptionListener(ExceptionListener listener);
void start();
void stop();
void unsubscribe(String name);
} | 368 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/JMSProducer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
import java.io.Serializable;
import java.util.Map;
import java.util.Set;
public interface JMSProducer {
JMSProducer clearProperties();
CompletionListener getAsync();
boolean getBooleanProperty(String name);
byte getByteProperty(String name);
long getDeliveryDelay();
int getDeliveryMode();
boolean getDisableMessageID();
boolean getDisableMessageTimestamp();
double getDoubleProperty(String name);
float getFloatProperty(String name);
int getIntProperty(String name);
String getJMSCorrelationID();
byte[] getJMSCorrelationIDAsBytes();
Destination getJMSReplyTo();
String getJMSType();
long getLongProperty(String name);
Object getObjectProperty(String name);
int getPriority();
Set<String> getPropertyNames();
short getShortProperty(String name);
String getStringProperty(String name);
long getTimeToLive();
boolean propertyExists(String name);
JMSProducer send(Destination destination, byte[] body);
JMSProducer send(Destination destination, Map<String, Object> body);
JMSProducer send(Destination destination, Message message);
JMSProducer send(Destination destination, Serializable body);
JMSProducer send(Destination destination, String body);
JMSProducer setAsync(CompletionListener completionListener);
JMSProducer setDeliveryDelay(long deliveryDelay);
JMSProducer setDeliveryMode(int deliveryMode);
JMSProducer setDisableMessageID(boolean value);
JMSProducer setDisableMessageTimestamp(boolean value);
JMSProducer setJMSCorrelationID(String correlationID);
JMSProducer setJMSCorrelationIDAsBytes(byte[] correlationID);
JMSProducer setJMSReplyTo(Destination replyTo);
JMSProducer setJMSType(String type);
JMSProducer setPriority(int priority);
JMSProducer setProperty(String name, boolean value);
JMSProducer setProperty(String name, byte value);
JMSProducer setProperty(String name, double value);
JMSProducer setProperty(String name, float value);
JMSProducer setProperty(String name, int value);
JMSProducer setProperty(String name, long value);
JMSProducer setProperty(String name, Object value);
JMSProducer setProperty(String name, short value);
JMSProducer setProperty(String name, String value);
JMSProducer setTimeToLive(long timeToLive);
}
| 369 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/Session.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import java.io.Serializable;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface Session extends Runnable, AutoCloseable {
static final int AUTO_ACKNOWLEDGE = 1;
static final int CLIENT_ACKNOWLEDGE = 2;
static final int DUPS_OK_ACKNOWLEDGE = 3;
static final int SESSION_TRANSACTED = 0;
BytesMessage createBytesMessage() throws JMSException;
MapMessage createMapMessage() throws JMSException;
Message createMessage() throws JMSException;
ObjectMessage createObjectMessage() throws JMSException;
ObjectMessage createObjectMessage(Serializable object) throws JMSException;
StreamMessage createStreamMessage() throws JMSException;
TextMessage createTextMessage() throws JMSException;
TextMessage createTextMessage(String text) throws JMSException;
boolean getTransacted() throws JMSException;
int getAcknowledgeMode() throws JMSException;
void commit() throws JMSException;
void rollback() throws JMSException;
void close() throws JMSException;
void recover() throws JMSException;
MessageListener getMessageListener() throws JMSException;
void setMessageListener(MessageListener listener) throws JMSException;
public void run();
MessageProducer createProducer(Destination destination)
throws JMSException;
MessageConsumer createConsumer(Destination destination)
throws JMSException;
MessageConsumer createConsumer(
Destination destination,
String messageSelector)
throws JMSException;
MessageConsumer createConsumer(
Destination destination,
String messageSelector,
boolean NoLocal)
throws JMSException;
Queue createQueue(String queueName) throws JMSException;
Topic createTopic(String topicName) throws JMSException;
TopicSubscriber createDurableSubscriber(Topic topic, String name)
throws JMSException;
TopicSubscriber createDurableSubscriber(
Topic topic,
String name,
String messageSelector,
boolean noLocal)
throws JMSException;
QueueBrowser createBrowser(Queue queue) throws JMSException;
QueueBrowser createBrowser(Queue queue, String messageSelector)
throws JMSException;
TemporaryQueue createTemporaryQueue() throws JMSException;
TemporaryTopic createTemporaryTopic() throws JMSException;
void unsubscribe(String name) throws JMSException;
MessageConsumer createSharedConsumer(Topic topic, String sharedSubscriptionName) throws JMSException;
MessageConsumer createSharedConsumer(Topic topic, String sharedSubscriptionName, java.lang.String messageSelector)
throws JMSException;
MessageConsumer createDurableConsumer(Topic topic, String name) throws JMSException;
MessageConsumer createDurableConsumer(Topic topic, String name, String messageSelector, boolean noLocal) throws JMSException;
MessageConsumer createSharedDurableConsumer(Topic topic, String name) throws JMSException;
MessageConsumer createSharedDurableConsumer(Topic topic, String name, String messageSelector) throws JMSException;
}
| 370 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/BytesMessage.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface BytesMessage extends Message {
long getBodyLength() throws JMSException;
boolean readBoolean() throws JMSException;
byte readByte() throws JMSException;
int readUnsignedByte() throws JMSException;
short readShort() throws JMSException;
int readUnsignedShort() throws JMSException;
char readChar() throws JMSException;
int readInt() throws JMSException;
long readLong() throws JMSException;
float readFloat() throws JMSException;
double readDouble() throws JMSException;
String readUTF() throws JMSException;
int readBytes(byte[] value) throws JMSException;
int readBytes(byte[] value, int length) throws JMSException;
void writeBoolean(boolean value) throws JMSException;
void writeByte(byte value) throws JMSException;
void writeShort(short value) throws JMSException;
void writeChar(char value) throws JMSException;
void writeInt(int value) throws JMSException;
void writeLong(long value) throws JMSException;
void writeFloat(float value) throws JMSException;
void writeDouble(double value) throws JMSException;
void writeUTF(String value) throws JMSException;
void writeBytes(byte[] value) throws JMSException;
void writeBytes(byte[] value, int offset, int length) throws JMSException;
void writeObject(Object value) throws JMSException;
void reset() throws JMSException;
}
| 371 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicConnection.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface XATopicConnection extends XAConnection, TopicConnection {
XATopicSession createXATopicSession() throws JMSException;
TopicSession createTopicSession(boolean transacted, int acknowledgeMode)
throws JMSException;
}
| 372 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/QueueConnection.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface QueueConnection extends Connection {
QueueSession createQueueSession(boolean transacted, int acknowledgeMode)
throws JMSException;
ConnectionConsumer createConnectionConsumer(
Queue queue,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException;
}
| 373 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/JMSConsumer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.jms;
public interface JMSConsumer extends AutoCloseable {
void close();
MessageListener getMessageListener();
String getMessageSelector();
Message receive();
Message receive(long timeout);
<T> T receiveBody(Class<T> c);
<T> T receiveBody(Class<T> c, long timeout);
<T> T receiveBodyNoWait(Class<T> c);
Message receiveNoWait();
void setMessageListener(MessageListener listener);
}
| 374 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec-alt/src/test/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec-alt/src/test/java/javax/ejb/EJBExceptionTest.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import org.junit.Assert;
import org.junit.Test;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.StringReader;
import java.io.StringWriter;
public class EJBExceptionTest {
private static final EJBException exceptionDefaultConstructor = new EJBException();
private static final EJBException exceptionWithNullMessage = new EJBException((String) null);
private static final EJBException exceptionWithMessage = new EJBException("msg");
private static final EJBException exceptionWithCausedBy = createException(true, false);
private static final EJBException exceptionWithInitCause = createException(false, true);
private static final EJBException exceptionWithCausedByAndInitCause = createException(true, true);
private static final EJBException exceptionWithDifferentCausedByAndInitCause = (EJBException) createException(true, false).initCause(new RuntimeException("initCause"));
private static EJBException createException(boolean causedBy, boolean initCause) {
try {
throw new Exception("cause");
} catch (Exception ex) {
EJBException ejbException = causedBy ? new EJBException("msg", ex) : new EJBException("msg");
if (initCause) {
ejbException.initCause(ex);
}
return ejbException;
}
}
@Test
public void testGetMessage() {
Assert.assertEquals(null, exceptionDefaultConstructor.getMessage());
Assert.assertEquals(null, exceptionWithNullMessage.getMessage());
Assert.assertEquals("msg", exceptionWithMessage.getMessage());
Assert.assertEquals("msg; nested exception is: java.lang.Exception: cause", exceptionWithCausedBy.getMessage());
Assert.assertEquals("msg", exceptionWithInitCause.getMessage());
Assert.assertEquals("msg; nested exception is: java.lang.Exception: cause", exceptionWithCausedByAndInitCause.getMessage());
// TODO Define this behavior
// Assert.assertEquals("msg; nested exception is: java.lang.RuntimeException: initCause", exceptionWithDifferentCausedByAndInitCause.getMessage());
}
@Test
public void testGetCause() {
Assert.assertNull(exceptionDefaultConstructor.getCause());
Assert.assertNull(exceptionWithNullMessage.getCause());
Assert.assertNull(exceptionWithMessage.getCause());
Assert.assertNotNull(exceptionWithCausedBy.getCause());
Assert.assertNotNull(exceptionWithInitCause.getCause());
Assert.assertNotNull(exceptionWithCausedByAndInitCause.getCause());
Assert.assertNotNull(exceptionWithDifferentCausedByAndInitCause.getCause());
}
@Test
public void testGetCausedByException() {
Assert.assertNull(exceptionDefaultConstructor.getCausedByException());
Assert.assertNull(exceptionWithNullMessage.getCausedByException());
Assert.assertNull(exceptionWithMessage.getCausedByException());
Assert.assertSame(exceptionWithCausedBy.getCause(), exceptionWithCausedBy.getCausedByException());
Assert.assertNull(exceptionWithInitCause.getCausedByException());
Assert.assertNotNull(exceptionWithCausedByAndInitCause.getCausedByException());
Assert.assertNotNull(exceptionWithDifferentCausedByAndInitCause.getCausedByException());
}
@Test
public void testInitCause() {
Exception cause1 = new Exception("cause1");
Exception cause2 = new Exception("cause2");
EJBException ejbEx = new EJBException(cause1);
Assert.assertSame(cause1, ejbEx.getCausedByException());
Assert.assertSame(cause1, ejbEx.getCause());
ejbEx.initCause(cause2);
Assert.assertSame(cause1, ejbEx.getCausedByException());
Assert.assertSame(cause2, ejbEx.getCause());
}
private static final String[] printStackTraces(Throwable t) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
t.printStackTrace(new PrintStream(baos));
StringWriter sw = new StringWriter();
t.printStackTrace(new PrintWriter(sw));
return new String[]{new String(baos.toByteArray()), sw.toString()};
}
private static String highlight(String s) {
return ">>>" + s + "<<<";
}
private void assertStackTrace(String s, String... pieces) throws IOException {
BufferedReader br = new BufferedReader(new StringReader(s));
int pos = 0;
for (String line; (line = br.readLine()) != null; ) {
if (line.startsWith("\tat") && (pos > 0 && pieces[pos - 1].equals("\tat"))) {
continue;
}
if (pos == pieces.length) {
Assert.fail("unexpected lines" + System.getProperty("line.separator") + highlight(s));
}
if (!line.startsWith(pieces[pos])) {
Assert.fail(highlight(line) + " does not start with piece " +
(pos + 1) + " " + highlight(pieces[pos]) +
System.getProperty("line.separator") + highlight(s));
}
pos++;
}
if (pos != pieces.length) {
Assert.fail("expected piece " + (pos + 1) + System.getProperty("line.separator") + highlight(s));
}
}
@Test
public void testPrintStackTrace() throws Exception {
for (String s : printStackTraces(exceptionDefaultConstructor)) {
assertStackTrace(s, "javax.ejb.EJBException", "\tat");
}
for (String s : printStackTraces(exceptionWithNullMessage)) {
assertStackTrace(s, "javax.ejb.EJBException", "\tat");
}
for (String s : printStackTraces(exceptionWithMessage)) {
assertStackTrace(s, "javax.ejb.EJBException", "\tat");
}
for (String s : printStackTraces(exceptionWithCausedBy)) {
assertStackTrace(s, "javax.ejb.EJBException: msg; nested exception",
"\tat",
"Caused by",
"\tat",
"\t...");
}
for (String s : printStackTraces(exceptionWithInitCause)) {
assertStackTrace(s,
"javax.ejb.EJBException",
"\tat",
"Caused by",
"\tat",
"\t...");
}
for (String s : printStackTraces(exceptionWithCausedByAndInitCause)) {
assertStackTrace(s,
"javax.ejb.EJBException: msg; nested exception",
"\tat",
"Caused by",
"\tat",
"\t...");
}
for (String s : printStackTraces(new EJBException(new Exception("cause1")).initCause(new Exception("cause2")))) {
assertStackTrace(s,
"javax.ejb.EJBException: nested exception is: java.lang.Exception: cause1",
"java.lang.Exception: cause1",
"\tat",
"javax.ejb.EJBException: nested exception is: java.lang.Exception: cause1",
"\tat",
"Caused by: java.lang.Exception: cause2",
"\t...");
}
}
} | 375 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec-alt/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec-alt/src/main/java/javax/ejb/EJBException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.io.PrintStream;
import java.io.PrintWriter;
/**
* @version $Rev$ $Date$
*/
public class EJBException extends RuntimeException {
private static final long serialVersionUID = 796770993296843510L;
private Exception causeException;
public EJBException() {
}
public EJBException(Exception causeException) {
this.causeException = causeException;
}
public EJBException(String message) {
super(message);
}
public EJBException(String message, Exception causeException) {
super(message);
this.causeException = causeException;
}
public Exception getCausedByException() {
return causeException;
}
@Override
public Throwable getCause() {
return super.getCause() != null ? super.getCause() : getCausedByException();
}
public String getMessage() {
if (causeException == null) return super.getMessage();
StringBuilder sb = new StringBuilder();
if (super.getMessage() != null) {
sb.append(super.getMessage());
sb.append("; ");
}
sb.append("nested exception is: ");
sb.append(causeException.toString());
return sb.toString();
}
public void printStackTrace(PrintStream ps) {
if (causeException == null || super.getCause() == null || causeException == super.getCause()) {
super.printStackTrace(ps);
} else synchronized (ps) {
ps.println(this);
causeException.printStackTrace(ps);
super.printStackTrace(ps);
}
}
public void printStackTrace(PrintWriter pw) {
if (causeException == null || super.getCause() == null || causeException == super.getCause()) {
super.printStackTrace(pw);
} else synchronized (pw) {
pw.println(this);
causeException.printStackTrace(pw);
super.printStackTrace(pw);
}
}
public void printStackTrace() {
printStackTrace(System.err);
}
}
| 376 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/test/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/test/java/javax/xml/registry/ConnectionFactoryTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.registry;
import java.util.Collection;
import java.util.Properties;
import junit.framework.TestCase;
import org.apache.ws.scout.registry.ConnectionFactoryImpl;
/**
* @version $Revision$ $Date$
*/
public class ConnectionFactoryTest extends TestCase {
private static final String CONNECTIONFACTORYCLASS_PROPERTY = "javax.xml.registry.ConnectionFactoryClass";
private Properties originalProperties;
private Properties props;
public void testNewInstanceWithDefault() throws JAXRException {
ConnectionFactory factory = ConnectionFactory.newInstance();
assertEquals(ConnectionFactoryImpl.class, factory.getClass());
}
public void testNewInstanceWithClass() throws JAXRException {
System.setProperty(CONNECTIONFACTORYCLASS_PROPERTY, MockFactory.class.getName());
ConnectionFactory factory = ConnectionFactory.newInstance();
assertEquals(MockFactory.class, factory.getClass());
}
protected void setUp() throws Exception {
super.setUp();
originalProperties = System.getProperties();
props = new Properties(originalProperties);
props.remove(CONNECTIONFACTORYCLASS_PROPERTY);
System.setProperties(props);
}
protected void tearDown() throws Exception {
System.setProperties(originalProperties);
super.tearDown();
}
public static class MockFactory extends ConnectionFactory {
public Connection createConnection() throws JAXRException {
throw new UnsupportedOperationException();
}
public FederatedConnection createFederatedConnection(Collection connections) throws JAXRException {
throw new UnsupportedOperationException();
}
public Properties getProperties() throws JAXRException {
throw new UnsupportedOperationException();
}
public void setProperties(Properties properties) throws JAXRException {
throw new UnsupportedOperationException();
}
}
}
| 377 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/BusinessLifeCycleManager.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
import java.util.Collection;
import javax.xml.registry.infomodel.Association;
/**
* @version $Revision$ $Date$
*/
public interface BusinessLifeCycleManager extends LifeCycleManager {
void confirmAssociation(Association assoc) throws JAXRException, InvalidRequestException;
BulkResponse deleteAssociations(Collection associationKeys) throws JAXRException;
BulkResponse deleteClassificationSchemes(Collection schemeKeys) throws JAXRException;
BulkResponse deleteConcepts(Collection conceptKeys) throws JAXRException;
BulkResponse deleteOrganizations(Collection organizationKeys) throws JAXRException;
BulkResponse deleteServiceBindings(Collection bindingKeys) throws JAXRException;
BulkResponse deleteServices(Collection serviceKeys) throws JAXRException;
BulkResponse saveAssociations(Collection associationKeys, boolean replace) throws JAXRException;
BulkResponse saveClassificationSchemes(Collection schemeKeys) throws JAXRException;
BulkResponse saveConcepts(Collection conceptKeys) throws JAXRException;
BulkResponse saveOrganizations(Collection organizationKeys) throws JAXRException;
BulkResponse saveServiceBindings(Collection bindingKeys) throws JAXRException;
BulkResponse saveServices(Collection serviceKeys) throws JAXRException;
void unConfirmAssociation(Association assoc) throws JAXRException, InvalidRequestException;
}
| 378 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/CapabilityProfile.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
/**
* @version $Revision$ $Date$
*/
public interface CapabilityProfile {
int getCapabilityLevel() throws JAXRException;
String getVersion() throws JAXRException;
}
| 379 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/FindQualifier.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
/**
* @version $Revision$ $Date$
*/
public interface FindQualifier {
public static final String AND_ALL_KEYS = "andAllKeys";
public static final String CASE_SENSITIVE_MATCH = "caseSensitiveMatch";
public static final String COMBINE_CLASSIFICATIONS = "combineClassifications";
public static final String EXACT_NAME_MATCH = "exactNameMatch";
public static final String OR_ALL_KEYS = "orAllKeys";
public static final String OR_LIKE_KEYS = "orLikeKeys";
public static final String SERVICE_SUBSET = "serviceSubset";
public static final String SORT_BY_DATE_ASC = "sortByDateAsc";
public static final String SORT_BY_DATE_DESC = "sortByDateDesc";
public static final String SORT_BY_NAME_ASC = "sortByNameAsc";
public static final String SORT_BY_NAME_DESC = "sortByNameDesc";
public static final String SOUNDEX = "soundex";
}
| 380 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/QueryManager.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
import java.util.Collection;
import javax.xml.registry.infomodel.RegistryObject;
/**
* @version $Revision$ $Date$
*/
public interface QueryManager {
RegistryObject getRegistryObject(String id) throws JAXRException;
RegistryObject getRegistryObject(String id, String objectType) throws JAXRException;
BulkResponse getRegistryObjects() throws JAXRException;
BulkResponse getRegistryObjects(Collection objectKeys) throws JAXRException;
BulkResponse getRegistryObjects(Collection objectKeys, String objectTypes) throws JAXRException;
BulkResponse getRegistryObjects(String objectTypes) throws JAXRException;
RegistryService getRegistryService() throws JAXRException;
}
| 381 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/LifeCycleManager.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
import java.util.Collection;
import java.util.Locale;
import javax.activation.DataHandler;
import javax.xml.registry.infomodel.Association;
import javax.xml.registry.infomodel.Classification;
import javax.xml.registry.infomodel.ClassificationScheme;
import javax.xml.registry.infomodel.Concept;
import javax.xml.registry.infomodel.EmailAddress;
import javax.xml.registry.infomodel.ExternalIdentifier;
import javax.xml.registry.infomodel.ExternalLink;
import javax.xml.registry.infomodel.ExtrinsicObject;
import javax.xml.registry.infomodel.InternationalString;
import javax.xml.registry.infomodel.Key;
import javax.xml.registry.infomodel.LocalizedString;
import javax.xml.registry.infomodel.Organization;
import javax.xml.registry.infomodel.PersonName;
import javax.xml.registry.infomodel.PostalAddress;
import javax.xml.registry.infomodel.RegistryObject;
import javax.xml.registry.infomodel.RegistryPackage;
import javax.xml.registry.infomodel.Service;
import javax.xml.registry.infomodel.ServiceBinding;
import javax.xml.registry.infomodel.Slot;
import javax.xml.registry.infomodel.SpecificationLink;
import javax.xml.registry.infomodel.TelephoneNumber;
import javax.xml.registry.infomodel.User;
/**
* @version $Revision$ $Date$
*/
public interface LifeCycleManager {
public static final String ASSOCIATION = "Association";
public static final String AUDITABLE_EVENT = "AuditableEvent";
public static final String CLASSIFICATION = "Classification";
public static final String CLASSIFICATION_SCHEME = "ClassificationScheme";
public static final String CONCEPT = "Concept";
public static final String EMAIL_ADDRESS = "EmailAddress";
public static final String EXTERNAL_IDENTIFIER = "ExternalIdentifier";
public static final String EXTERNAL_LINK = "ExternalLink";
public static final String EXTRINSIC_OBJECT = "ExtrinsicObject";
public static final String INTERNATIONAL_STRING = "InternationalString";
public static final String KEY = "Key";
public static final String LOCALIZED_STRING = "LocalizedString";
public static final String ORGANIZATION = "Organization";
public static final String PERSON_NAME = "PersonName";
public static final String POSTAL_ADDRESS = "PostalAddress";
public static final String REGISTRY_ENTRY = "RegistryEntry";
public static final String REGISTRY_PACKAGE = "RegistryPackage";
public static final String SERVICE = "Service";
public static final String SERVICE_BINDING = "ServiceBinding";
public static final String SLOT = "Slot";
public static final String SPECIFICATION_LINK = "SpecificationLink";
public static final String TELEPHONE_NUMBER = "TelephoneNumber";
public static final String USER = "User";
public static final String VERSIONABLE = "Versionable";
Association createAssociation(RegistryObject targetObject, Concept associationType) throws JAXRException;
Classification createClassification(ClassificationScheme scheme, InternationalString name, String value) throws JAXRException;
Classification createClassification(ClassificationScheme scheme, String name, String value) throws JAXRException;
Classification createClassification(Concept concept) throws JAXRException, InvalidRequestException;
ClassificationScheme createClassificationScheme(Concept concept) throws JAXRException, InvalidRequestException;
ClassificationScheme createClassificationScheme(InternationalString name, InternationalString description) throws JAXRException, InvalidRequestException;
ClassificationScheme createClassificationScheme(String name, String description) throws JAXRException, InvalidRequestException;
Concept createConcept(RegistryObject parent, InternationalString name, String value) throws JAXRException;
Concept createConcept(RegistryObject parent, String name, String value) throws JAXRException;
EmailAddress createEmailAddress(String address) throws JAXRException;
EmailAddress createEmailAddress(String address, String type) throws JAXRException;
ExternalIdentifier createExternalIdentifier(ClassificationScheme identificationScheme, InternationalString name, String value) throws JAXRException;
ExternalIdentifier createExternalIdentifier(ClassificationScheme identificationScheme, String name, String value) throws JAXRException;
ExternalLink createExternalLink(String externalURI, InternationalString description) throws JAXRException;
ExternalLink createExternalLink(String externalURI, String description) throws JAXRException;
ExtrinsicObject createExtrinsicObject(DataHandler repositoryItem) throws JAXRException;
InternationalString createInternationalString() throws JAXRException;
InternationalString createInternationalString(Locale locale, String value) throws JAXRException;
InternationalString createInternationalString(String value) throws JAXRException;
Key createKey(String id) throws JAXRException;
LocalizedString createLocalizedString(Locale locale, String value) throws JAXRException;
LocalizedString createLocalizedString(Locale locale, String value, String chatsetName) throws JAXRException;
Object createObject(String interfaceName) throws JAXRException, InvalidRequestException, UnsupportedCapabilityException;
Organization createOrganization(InternationalString name) throws JAXRException;
Organization createOrganization(String name) throws JAXRException;
PersonName createPersonName(String fullName) throws JAXRException;
PersonName createPersonName(String firstName, String middleName, String lastName) throws JAXRException;
PostalAddress createPostalAddress(String streetNumber, String street, String city, String stateOrProvince, String country, String postalCode, String type) throws JAXRException;
RegistryPackage createRegistryPackage(InternationalString name) throws JAXRException;
RegistryPackage createRegistryPackage(String name) throws JAXRException;
Service createService(InternationalString name) throws JAXRException;
Service createService(String name) throws JAXRException;
ServiceBinding createServiceBinding() throws JAXRException;
Slot createSlot(String name, Collection values, String slotType) throws JAXRException;
Slot createSlot(String name, String value, String slotType) throws JAXRException;
SpecificationLink createSpecificationLink() throws JAXRException;
TelephoneNumber createTelephoneNumber() throws JAXRException;
User createUser() throws JAXRException;
BulkResponse deleteObjects(Collection keys) throws JAXRException;
BulkResponse deleteObjects(Collection keys, String objectType) throws JAXRException;
BulkResponse deprecateObjects(Collection keys) throws JAXRException;
RegistryService getRegistryService() throws JAXRException;
BulkResponse saveObjects(Collection objects) throws JAXRException;
BulkResponse unDeprecateObjects(Collection keys) throws JAXRException;
}
| 382 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/DeclarativeQueryManager.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
/**
* @version $Revision$ $Date$
*/
public interface DeclarativeQueryManager extends QueryManager {
Query createQuery(int queryType, String queryString) throws JAXRException, InvalidRequestException;
BulkResponse executeQuery(Query query) throws JAXRException;
}
| 383 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/UnexpectedObjectException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
/**
* @version $Revision$ $Date$
*/
public class UnexpectedObjectException extends JAXRException {
public UnexpectedObjectException() {
}
public UnexpectedObjectException(String message) {
super(message);
}
public UnexpectedObjectException(Throwable cause) {
super(cause);
}
public UnexpectedObjectException(String message, Throwable cause) {
super(message, cause);
}
}
| 384 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/RegistryService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
import javax.xml.registry.infomodel.ClassificationScheme;
/**
* @version $Revision$ $Date$
*/
public interface RegistryService {
BulkResponse getBulkResponse(String requestId) throws JAXRException, InvalidRequestException;
BusinessLifeCycleManager getBusinessLifeCycleManager() throws JAXRException;
BusinessQueryManager getBusinessQueryManager() throws JAXRException;
CapabilityProfile getCapabilityProfile() throws JAXRException;
DeclarativeQueryManager getDeclarativeQueryManager() throws JAXRException, UnsupportedCapabilityException;
ClassificationScheme getDefaultPostalScheme() throws JAXRException;
String makeRegistrySpecificRequest(String request) throws JAXRException;
}
| 385 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/FederatedConnection.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
/**
* @version $Revision$ $Date$
*/
public interface FederatedConnection extends Connection {
}
| 386 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/SaveException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
/**
* @version $Revision$ $Date$
*/
public class SaveException extends RegistryException {
public SaveException() {
}
public SaveException(String message) {
super(message);
}
public SaveException(Throwable cause) {
super(cause);
}
public SaveException(String message, Throwable cause) {
super(message, cause);
}
}
| 387 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/DeleteException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
/**
* @version $Revision$ $Date$
*/
public class DeleteException extends RegistryException {
public DeleteException() {
}
public DeleteException(String message) {
super(message);
}
public DeleteException(Throwable cause) {
super(cause);
}
public DeleteException(String message, Throwable cause) {
super(message, cause);
}
}
| 388 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/FindException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
/**
* @version $Revision$ $Date$
*/
public class FindException extends RegistryException {
public FindException() {
}
public FindException(String message) {
super(message);
}
public FindException(Throwable cause) {
super(cause);
}
public FindException(String message, Throwable cause) {
super(message, cause);
}
}
| 389 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/BulkResponse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
import java.util.Collection;
/**
* @version $Revision$ $Date$
*/
public interface BulkResponse extends JAXRResponse {
Collection getCollection() throws JAXRException;
Collection getExceptions() throws JAXRException;
boolean isPartialResponse() throws JAXRException;
}
| 390 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/Query.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
/**
* @version $Revision$ $Date$
*/
public interface Query {
public static final int QUERY_TYPE_SQL = 0;
public static final int QUERY_TYPE_XQUERY = 1;
public static final int QUERY_TYPE_EBXML_FILTER_QUERY = 2;
int getType() throws JAXRException;
String toString();
}
| 391 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/Connection.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
import java.util.Set;
/**
* @version $Revision$ $Date$
*/
public interface Connection {
void close() throws JAXRException;
Set getCredentials() throws JAXRException;
RegistryService getRegistryService() throws JAXRException;
boolean isClosed() throws JAXRException;
boolean isSynchronous() throws JAXRException;
void setCredentials(Set credentials) throws JAXRException;
void setSynchronous(boolean sync) throws JAXRException;
}
| 392 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/JAXRResponse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
/**
* @version $Revision$ $Date$
*/
public interface JAXRResponse {
public static int STATUS_SUCCESS = 0;
public static int STATUS_WARNING = 1;
public static int STATUS_FAILURE = 2;
public static int STATUS_UNAVAILABLE = 3;
String getRequestId() throws JAXRException;
int getStatus() throws JAXRException;
boolean isAvailable() throws JAXRException;
}
| 393 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/RegistryException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
import javax.xml.registry.infomodel.Key;
/**
* @version $Revision$ $Date$
*/
public class RegistryException extends JAXRException {
private Key errorObjectKey;
public RegistryException() {
}
public RegistryException(String message) {
super(message);
}
public RegistryException(Throwable cause) {
super(cause);
}
public RegistryException(String message, Throwable cause) {
super(message, cause);
}
public Key getErrorObjectKey() throws JAXRException {
return errorObjectKey;
}
public void setErrorObjectKey(Key errorObjectKey) throws JAXRException {
this.errorObjectKey = errorObjectKey;
}
}
| 394 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/UnsupportedCapabilityException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
/**
* @version $Revision$ $Date$
*/
public class UnsupportedCapabilityException extends JAXRException {
public UnsupportedCapabilityException() {
}
public UnsupportedCapabilityException(String message) {
super(message);
}
public UnsupportedCapabilityException(Throwable cause) {
super(cause);
}
public UnsupportedCapabilityException(String message, Throwable cause) {
super(message, cause);
}
}
| 395 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/InvalidRequestException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
/**
* @version $Revision$ $Date$
*/
public class InvalidRequestException extends JAXRException {
public InvalidRequestException() {
}
public InvalidRequestException(String message) {
super(message);
}
public InvalidRequestException(Throwable cause) {
super(cause);
}
public InvalidRequestException(String message, Throwable cause) {
super(message, cause);
}
}
| 396 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/JAXRException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
/**
* Signals that a JAXR exception has occurred.
* Note that the Exception chaining here is different from JDK1.4
*
* @version $Revision$ $Date$
*/
public class JAXRException extends Exception implements JAXRResponse {
protected Throwable cause;
public JAXRException() {
}
public JAXRException(String message) {
super(message);
}
public JAXRException(Throwable cause) {
super(cause);
this.cause = cause;
}
public JAXRException(String message, Throwable cause) {
super(message, cause);
this.cause = cause;
}
public synchronized Throwable initCause(Throwable cause) {
if (this.cause != null) {
throw new IllegalStateException("Cannot overwrite cause.");
}
this.cause = cause;
return this;
}
public String getMessage() {
String message = super.getMessage();
return (message == null && cause != null) ? cause.getMessage() : message;
}
public Throwable getCause() {
return cause;
}
public String getRequestId() {
return null;
}
public int getStatus() {
return 0;
}
public boolean isAvailable() throws JAXRException {
return true;
}
}
| 397 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/ConnectionFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
import java.util.Properties;
import java.util.Collection;
import org.apache.geronimo.osgi.locator.ProviderLocator;
/**
* @version $Revision$ $Date$
*/
public abstract class ConnectionFactory {
public ConnectionFactory() {
}
public abstract Connection createConnection() throws JAXRException;
public abstract FederatedConnection createFederatedConnection(Collection connections) throws JAXRException;
public abstract Properties getProperties() throws JAXRException;
public abstract void setProperties(Properties properties) throws JAXRException;
public static ConnectionFactory newInstance() throws JAXRException {
String className = System.getProperty("javax.xml.registry.ConnectionFactoryClass", "org.apache.ws.scout.registry.ConnectionFactoryImpl");
ClassLoader cl = Thread.currentThread().getContextClassLoader();
if (cl == null) {
cl = ConnectionFactory.class.getClassLoader();
}
try {
Class factoryClass = ProviderLocator.loadClass(className, ConnectionFactory.class, cl);
return (ConnectionFactory) factoryClass.newInstance();
} catch (ClassNotFoundException e) {
throw new JAXRException("Unable to load JAXR ConnectionFactoryClass: " + className, e);
} catch (InstantiationException e) {
throw new JAXRException("Unable to instantiate JAXR ConnectionFactoryClass: " + className, e);
} catch (IllegalAccessException e) {
throw new JAXRException("Unable to instantiate JAXR ConnectionFactoryClass: " + className, e);
}
}
}
| 398 |
0 | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/BusinessQueryManager.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.xml.registry;
import java.util.Collection;
import javax.xml.registry.infomodel.ClassificationScheme;
import javax.xml.registry.infomodel.Concept;
import javax.xml.registry.infomodel.Key;
/**
* @version $Revision$ $Date$
*/
public interface BusinessQueryManager extends QueryManager {
BulkResponse findAssociations(Collection findQualifiers, String sourceObjectId, String targetObjectId, Collection associationTypes) throws JAXRException;
BulkResponse findCallerAssociations(Collection findQualifiers, Boolean confirmedByCaller, Boolean confirmedByOtherParty, Collection associationTypes) throws JAXRException;
ClassificationScheme findClassificationSchemeByName(Collection findQualifiers, String namePatters) throws JAXRException;
BulkResponse findClassificationSchemes(Collection findQualifiers, Collection namePatterns, Collection classifications, Collection externalLinks) throws JAXRException;
Concept findConceptByPath(String path) throws JAXRException;
BulkResponse findConcepts(Collection findQualifiers, Collection namePatterns, Collection classifications, Collection externalIdentifiers, Collection externalLinks) throws JAXRException;
BulkResponse findOrganizations(Collection findQualifiers, Collection namePatterns, Collection classifications, Collection specifications, Collection externalIdentifiers, Collection externalLinks) throws JAXRException;
BulkResponse findRegistryPackages(Collection findQualifiers, Collection namePatterns, Collection classifications, Collection externalLinks) throws JAXRException;
BulkResponse findServiceBindings(Key serviceKey, Collection findQualifiers, Collection classifications, Collection specificationa) throws JAXRException;
BulkResponse findServices(Key orgKey, Collection findQualifiers, Collection namePattersn, Collection classifications, Collection specificationa) throws JAXRException;
}
| 399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.