Examples of TextI18n


Examples of org.modeshape.common.i18n.TextI18n

                    // method
                    childURL.append(URL_ENCODER.encode(child));

                    StoredObject obj = store.getStoredObject(transaction, path + "/" + child);
                    if (obj == null) {
                        logger.error(new TextI18n("Should not return null for " + path + "/" + child));
                    }
                    if (obj != null && obj.isFolder()) {
                        childURL.append("/");
                    }
View Full Code Here

Examples of org.modeshape.common.i18n.TextI18n

                    out.append(new String(b, 0, n));
                }
                retVal = out.toString();
            }
        } catch (Exception ex) {
            logger.error(ex, new TextI18n("Error in reading webdav.css"));
        }

        return retVal;
    }
View Full Code Here

Examples of org.modeshape.common.i18n.TextI18n

                    } else {
                        doLock(transaction, req, resp);
                    }
                } catch (LockFailedException e) {
                    resp.sendError(WebdavStatus.SC_LOCKED);
                    logger.error(e, new TextI18n("Lockfailed exception"));
                } finally {
                    resourceLocks.unlockTemporaryLockedObjects(transaction, path, tempLockOwner);
                }
            }
        }
View Full Code Here

Examples of org.modeshape.common.i18n.TextI18n

            }
        } catch (LockFailedException e) {
            sendLockFailError(req, resp);
        } catch (WebdavException e) {
            resp.sendError(WebdavStatus.SC_INTERNAL_SERVER_ERROR);
            logger.error(e, new TextI18n("Webdav exception"));
        } catch (ServletException e) {
            resp.sendError(WebdavStatus.SC_INTERNAL_SERVER_ERROR);
            logger.error(e, new TextI18n("Servlet exception"));
        } finally {
            parentSo = null;
            nullSo = null;
        }
    }
View Full Code Here

Examples of org.modeshape.common.i18n.TextI18n

                return false;
            }

        } catch (DOMException e) {
            resp.sendError(WebdavStatus.SC_INTERNAL_SERVER_ERROR);
            logger.error(e, new TextI18n("DOM exception"));
            return false;
        } catch (SAXException e) {
            resp.sendError(WebdavStatus.SC_INTERNAL_SERVER_ERROR);
            logger.error(e, new TextI18n("SAX exception"));
            return false;
        }

        return true;
    }
View Full Code Here

Examples of org.modeshape.common.i18n.TextI18n

        ByteArrayOutputStream buf = new ByteArrayOutputStream(maxBytesPerChar);
        OutputStreamWriter writer = null;
        try {
            writer = new OutputStreamWriter(buf, "UTF-8");
        } catch (Exception e) {
            LOG.error(e, new TextI18n("Error in encode <" + path + ">"));
            writer = new OutputStreamWriter(buf);
        }

        for (int i = 0; i < path.length(); i++) {
            int c = path.charAt(i);
View Full Code Here

Examples of org.modeshape.common.i18n.TextI18n

                if (this.owner.length == 0) {
                    this.owner = null;
                }
            }
        } catch (ArrayIndexOutOfBoundsException e) {
            LOGGER.error(e, new TextI18n("LockedObject.removeLockedObjectOwner()"));
        }
    }
View Full Code Here

Examples of org.modeshape.common.i18n.TextI18n

        try {
            if (!file.createNewFile()) {
                throw new WebdavException("cannot create file: " + uri);
            }
        } catch (IOException e) {
            LOG.error(new TextI18n("LocalFileSystemStore.createResource(" + uri + ") failed"));
            throw new WebdavException(e);
        }
    }
View Full Code Here

Examples of org.modeshape.common.i18n.TextI18n

                } finally {
                    os.close();
                }
            }
        } catch (IOException e) {
            LOG.error(new TextI18n("LocalFileSystemStore.setResourceContent(" + uri + ") failed"));
            throw new WebdavException(e);
        }
        long length = -1;

        try {
            length = file.length();
        } catch (SecurityException e) {
            LOG.error(new TextI18n("LocalFileSystemStore.setResourceContent(" + uri + ") failed" + "\nCan't get file.length"));
        }

        return length;
    }
View Full Code Here

Examples of org.modeshape.common.i18n.TextI18n

        InputStream in;
        try {
            in = new BufferedInputStream(new FileInputStream(file));
        } catch (IOException e) {
            LOG.error(new TextI18n("LocalFileSystemStore.getResourceContent(" + uri + ") failed"));
            throw new WebdavException(e);
        }
        return in;
    }
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.