public class FileDescriptionCreationStrategy extends Object implements DescriptionCreationStrategy
SosProcedureDescription
from a file.Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
FileDescriptionCreationStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(Procedure p) |
SosProcedureDescription |
create(Procedure p,
String descriptionFormat,
Locale i18n,
org.hibernate.Session s) |
private SosProcedureDescription |
decode(org.apache.xmlbeans.XmlObject xml) |
private InputStream |
getDocumentAsStream(String filename) |
(package private) ServiceConfiguration |
getServiceConfig() |
private org.apache.xmlbeans.XmlObject |
read(String path) |
public SosProcedureDescription create(Procedure p, String descriptionFormat, Locale i18n, org.hibernate.Session s) throws OwsExceptionReport
create
in interface DescriptionCreationStrategy
OwsExceptionReport
private InputStream getDocumentAsStream(String filename)
private SosProcedureDescription decode(org.apache.xmlbeans.XmlObject xml) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject read(String path) throws OwsExceptionReport
OwsExceptionReport
public boolean apply(Procedure p)
apply
in interface com.google.common.base.Predicate<Procedure>
ServiceConfiguration getServiceConfig()
Copyright © 2012-2015 52north.org. All Rights Reserved.