garada selfservice example - TheOpenCloudEngine/garuda-portal GitHub Wiki
Doc Writer <[email protected]> v2.0.0, 2015-07-10: :doctype: book :source-highlighter: coderay :listing-caption: Listing :sectnums: :toc: :toc-title: λͺ©μ°¨ :toclevels: 4 :imagesdir: images :homepage: http://www.uengine.org
λ³Έ λ¬Έμλ 1 OCE DEVELOPER PORTAL μν μ±μ λν μ€μΉ λ° μ€ννκ²½μ κ°λ΅ν μμ ν λ©λ΄μΌμ΄λ€.
https://github.com/TheOpenCloudEngine/garuda-portal/tree/master/garuda-selfservice-example
2.2 λ€μ΄ λ°μ μν μ± BasicServlet.javaνμΌμμ OCE DEVELOPER PORTAL μ± μ μ μ 보λ₯Ό μ€μ νλ€.
public class BasicServlet extends HttpServlet{
private final static String APP_ID = "demo";
private final static String GARUDA_SERVER = "http://www.processcodi.com:8080";
private final static String TEXT_METADATA_KEY = "companyName";
private final static String FILE_METADATA_KEY = "companyLogo";
νλ μ΄λ¦ | μ€λͺ |
---|---|
APP_ID |
μ½λμμ λ±λ‘ν μ± μ΄λ¦ |
GARUDA_SERVER |
μ½λ λλ©μΈ(www ν¬ν¨) |
TEXT_METADATA_KEY |
μμ±ν ν μ€νΈ λ©νλ°μ΄ν° ν€ |
FILE_METADATA_KEY |
μμ±ν νμΌ λ©νλ°μ΄ν° ν€ |
hostsνμΌμμ μν μ±μ μνμ¬ ν μ€νΈμ©μΌλ‘ λλ©μΈμ νλ λ§λ€μ΄ μ€λ€.
127.0.0.1 gms.garuda.com
μν μ±μμ TenantAwareFilter ν΅νμ¬ λλ©μΈμ νμ±νμ¬ ν λνΈλ₯Ό μ»λλ€.
tenantId.xxx.com // λλ©μΈμ .μΌλ‘ νμ±ν 첫λ²μ¬ ν
μ€νΈλ₯Ό λλ©μΈμΌλ‘ μΈμ
demo μ±μ μλ ν μ€νΈμ νμΌ λ©νλ°μ΄ν°λ₯Ό κ°μ Έμμ νλ©΄μ 보μ¬μ€λ€.