Package org.apache.tuscany.sca.binding.atom.collection

Examples of org.apache.tuscany.sca.binding.atom.collection.NotFoundException


                        msg.setBody(entry.getData());
                    }

                } else if (status == 404) {
                  if ( provider.supportsFeedEntries())
                    msg.setFaultBody(new NotFoundException());
                  else
                    msg.setFaultBody(new org.apache.tuscany.sca.data.collection.NotFoundException());                
                } else {
                    msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
                }
View Full Code Here


                        msg.setBody(createdEntry.getId().toString());
                    }

                } else if (status == 404) {
                  if ( provider.supportsFeedEntries())
                    msg.setFaultBody(new NotFoundException());
                  else
                    msg.setFaultBody(new org.apache.tuscany.sca.data.collection.NotFoundException());                  
                } else {
                    msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
                }
View Full Code Here

                    msg.setBody(null);

                } else if (status == 404) {
                  if ( provider.supportsFeedEntries())
                    msg.setFaultBody(new NotFoundException());
                  else
                    msg.setFaultBody(new org.apache.tuscany.sca.data.collection.NotFoundException());
                } else {
                    msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
                }
View Full Code Here

                                                            provider.getItemXMLType(), provider.getMediator());
                        msg.setBody(entry.getData());
                    }

                } else if (status == 404) {
                    msg.setFaultBody(new NotFoundException());
                } else {
                    msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
                }

            } catch (Exception e) {
View Full Code Here

                        // Returns the id of the created entry
                        msg.setBody(createdEntry.getId().toString());
                    }

                } else if (status == 404) {
                    msg.setFaultBody(new NotFoundException());
                } else {
                    msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
                }

            } catch (Exception e) {
View Full Code Here

                if (status == 200 || status == 201) {

                    msg.setBody(null);

                } else if (status == 404) {
                    msg.setFaultBody(new NotFoundException());
                } else {
                    msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
                }

            } catch (Exception e) {
View Full Code Here

                int status = deleteMethod.getStatusCode();
                if (status == 200) {
                    msg.setBody(null);

                } else if (status == 404) {
                    msg.setFaultBody(new NotFoundException());
                } else {
                    msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
                }

            } catch (Exception e) {
View Full Code Here

                        }
                        msg.setBody(entries.toArray(new Entry[entries.size()]));
                    }

                } else if (status == 404) {
                    msg.setFaultBody(new NotFoundException());
                } else {
                    msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
                }

            } catch (Exception e) {
View Full Code Here

                        }
                        msg.setBody(entries.toArray(new Entry[entries.size()]));
                    }

                } else if (status == 404) {
                    msg.setFaultBody(new NotFoundException());
                } else {
                    msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));
                }

            } catch (Exception e) {
View Full Code Here

     * @return Not used
     * @throws NotFoundException Always thrown as method not implemented
     */
    public Entry get(String id) throws NotFoundException {
        // Not implemented
        throw new NotFoundException("You are not allowed to update entries");
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.atom.collection.NotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.