Examples of ArchiveType


Examples of ef.impl.archive.ArchiveType

    }


    @Override
    public FileEntry archive(String mimeType, String[] targets) {
        ArchiveType type;
        try {
            type = ArchiveType.fromMime(mimeType);
        } catch (Exception e) {
            throw new ErrException(e, Error.errArcType);
        }
        List<FileHolder> holders = getRequiredFiles(targets);
        FileHolder parent = getRequiredParent(holders.get(0));
        File archiveFile = getNewArchiveFile(parent.path + File.separator + parent.file.getName(), type.getFileExt());

        List<File> files = new ArrayList<File>();
        for(FileHolder holder: holders){
            files.add(holder.file);
        }
View Full Code Here

Examples of ef.impl.archive.ArchiveType

    public FileEntry extract(String target) {
        FileHolder holder = getRequiredFile(target);
        FileHolder parent = getRequiredParent(holder);
        assertFile(holder);
        String ext = FilenameUtils.getExtension(holder.path);
        ArchiveType type;
        try {
            type = ArchiveType.fromFileExt(ext);
        } catch (Exception e) {
            throw new ErrException(Error.errArcType);
        }
View Full Code Here

Examples of org.glassfish.api.deployment.archive.ArchiveType

     * composite sniffer.
     * @param context deployment context
     * @return true if the location is recognized by this sniffer
     */
    public boolean handles(DeploymentContext context) {
        ArchiveType archiveType = habitat.getService(ArchiveType.class, context.getArchiveHandler().getArchiveType());
        if (archiveType != null && !supportsArchiveType(archiveType)) {
            return false;
        }
        return handles(context.getSource());
    }
View Full Code Here

Examples of org.glassfish.api.deployment.archive.ArchiveType

     *
     * @param descriptor WebServices descriptor
     */
    public void check(Descriptor descriptor) throws Exception {
        WebServicesDescriptor rootDescriptor = (WebServicesDescriptor) descriptor;
        ArchiveType moduleType = rootDescriptor.getBundleDescriptor()
                .getModuleType();
        if (moduleType != null && moduleType.equals(DOLUtils.ejbType()))
            moduleName = Result.EJB;
        else if (moduleType != null && moduleType.equals(DOLUtils.warType()))
            moduleName = Result.WEB;
        for (Iterator itr = rootDescriptor.getWebServices().iterator();
             itr.hasNext();) {
            WebService wsDescriptor = (WebService) itr.next()
            // need to pass WebServiceEndpoint's to check
View Full Code Here

Examples of org.glassfish.api.deployment.archive.ArchiveType

            }

            copyExtraFilesToGeneratedFolder(dc);
            BundleDescriptor bundle = webService.getBundleDescriptor();

            ArchiveType moduleType = bundle.getModuleType();
            //only EAR, WAR and EJB archives could contain wsdl files for publish
            if (moduleType==null || !(moduleType.equals(DOLUtils.earType()) ||
                    moduleType.equals(DOLUtils.warType()) ||
                    moduleType.equals(DOLUtils.ejbType()))) {
                return publishedFiles;
            }


            File sourceDir = dc.getScratchDir("xml");
View Full Code Here

Examples of org.glassfish.api.deployment.archive.ArchiveType

        return true;
    }

    @Override
    public boolean handles(DeploymentContext context) {
        ArchiveType archiveType = habitat.getService(ArchiveType.class, context.getArchiveHandler().getArchiveType());
        return supportsArchiveType(archiveType);
    }
View Full Code Here

Examples of org.glassfish.api.deployment.archive.ArchiveType

    private EndpointImpl createEndpointInfo(WebServiceEndpoint endpoint) {
       
        try {
            String endpointURL = endpoint.getEndpointAddressUri();
            EndpointType endpointType;           
            ArchiveType moduleType = endpoint.getWebService().getWebServicesDescriptor().getModuleType();
            if (moduleType != null && moduleType.equals(DOLUtils.ejbType())) {
                endpointType = EndpointType.EJB_ENDPOINT;
            } else {
                endpointType = EndpointType.SERVLET_ENDPOINT;
            }
View Full Code Here

Examples of org.glassfish.api.deployment.archive.ArchiveType

            }

            copyExtraFilesToGeneratedFolder(dc);
            BundleDescriptor bundle = webService.getBundleDescriptor();

            ArchiveType moduleType = bundle.getModuleType();
            //only EAR, WAR and EJB archives could contain wsdl files for publish
            if (moduleType==null || !(moduleType.equals(DOLUtils.earType()) ||
                    moduleType.equals(DOLUtils.warType()) ||
                    moduleType.equals(DOLUtils.ejbType()))) {
                return publishedFiles;
            }


            File sourceDir = dc.getScratchDir("xml");
View Full Code Here

Examples of org.glassfish.api.deployment.archive.ArchiveType

@Service(name = "weldCompositeSniffer")
@Singleton
public class WeldCompositeSniffer extends WeldSniffer {

    public boolean handles(DeploymentContext context) {
        ArchiveType archiveType = habitat.getService(ArchiveType.class, context.getArchiveHandler().getArchiveType());
        if (archiveType != null && !supportsArchiveType(archiveType)) {
            return false;
        }

        boolean isWeldApplication = false;
View Full Code Here

Examples of org.glassfish.api.deployment.archive.ArchiveType

    private EndpointImpl createEndpointInfo(WebServiceEndpoint endpoint) {
       
        try {
            String endpointURL = endpoint.getEndpointAddressUri();
            EndpointType endpointType;           
            ArchiveType moduleType = endpoint.getWebService().getWebServicesDescriptor().getModuleType();
            if (moduleType != null && moduleType.equals(DOLUtils.ejbType())) {
                endpointType = EndpointType.EJB_ENDPOINT;
            } else {
                endpointType = EndpointType.SERVLET_ENDPOINT;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.