Package javax.ws.rs

Examples of javax.ws.rs.NotSupportedException


                    MultivaluedMap<String, String> headers, InputStream is)
        throws IOException, WebApplicationException {
        MessageBodyReader<org.w3c.dom.Document> reader =
            providers.getMessageBodyReader(DOM_DOC_CLS, DOM_DOC_CLS, anns, mt);
        if (reader == null) {
            throw new NotSupportedException();
        }
        org.w3c.dom.Document domDoc =
            reader.readFrom(DOM_DOC_CLS, DOM_DOC_CLS, anns, mt, headers, is);
        return new org.dom4j.io.DOMReader().read(domDoc);
    }
View Full Code Here


       
        MediaType requestType;
        try {
            requestType = getMethod ? MediaType.WILDCARD_TYPE : toMediaType(requestContentType);
        } catch (IllegalArgumentException ex) {
            throw new NotSupportedException(ex);
        }
       
        SortedMap<OperationResourceInfo, MultivaluedMap<String, String>> candidateList =
            new TreeMap<OperationResourceInfo, MultivaluedMap<String, String>>(
                new OperationResourceInfoComparator(message, httpMethod,
View Full Code Here

                    org.apache.cxf.common.i18n.Message errorMsg =
                        new org.apache.cxf.common.i18n.Message("WRONG_FORM_MEDIA_TYPE",
                                                               BUNDLE,
                                                               mt.toString());
                    LOG.warning(errorMsg.toString());
                    throw new NotSupportedException();
                }
            }
        }
       
        if ("".equals(key)) {
View Full Code Here

    // Not directly mapped: returning an integer would be weird. See enqueue_object.
    public int enqueue(JobRequest jd)
    {
        log.debug("calling WS enqueue");
        throw new NotSupportedException();
    }
View Full Code Here

    // Not exposed. Client side work.
    @Override
    public int enqueue(String applicationName, String userName)
    {
        log.debug("calling WS enqueue");
        throw new NotSupportedException();
    }
View Full Code Here

    // Not exposed. Client side work.
    @Override
    public int enqueueFromHistory(int jobIdToCopy)
    {
        log.debug("calling WS enqueueFromHistory");
        throw new NotSupportedException();
    }
View Full Code Here

    // Not exposed. Use getJob => progress
    @Override
    public int getJobProgress(int jobId)
    {
        log.debug("calling WS getJobProgress");
        throw new NotSupportedException();
    }
View Full Code Here

    // Not exposed. Returning a list of files is a joke anyway... Loop should be client-side.
    @Override
    public List<InputStream> getJobDeliverablesContent(int jobId)
    {
        log.debug("calling WS getJobDeliverablesContent");
        throw new NotSupportedException();
    }
View Full Code Here

                    break;
                case NOT_ACCEPTABLE:
                    webAppException = new NotAcceptableException(response);
                    break;
                case UNSUPPORTED_MEDIA_TYPE:
                    webAppException = new NotSupportedException(response);
                    break;
                case INTERNAL_SERVER_ERROR:
                    webAppException = new InternalServerErrorException(response);
                    break;
                case SERVICE_UNAVAILABLE:
View Full Code Here

                satisfyingAcceptors.add(cpi);
                differentInvokableMethods.add(cpi.methodAcceptorPair.model);
            }
        }
        if (satisfyingAcceptors.isEmpty()) {
            throw new NotSupportedException();
        }

        final List<MediaType> acceptableMediaTypes = request.getAcceptableMediaTypes();

        final MediaType requestContentType = request.getMediaType();
View Full Code Here

TOP

Related Classes of javax.ws.rs.NotSupportedException

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.