-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af2cd31
commit 7df71b4
Showing
73 changed files
with
127 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+10 Bytes
(100%)
build/classes/kotlin/main/com/boribori/boardserver/board/Board.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len
Binary file not shown.
Binary file modified
BIN
+3.69 KB
(890%)
build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...d/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len
Binary file not shown.
Binary file modified
BIN
+66 Bytes
(220%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...n/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len
Binary file not shown.
Binary file modified
BIN
+1.78 KB
(990%)
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...n/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len
Binary file not shown.
Binary file modified
BIN
+1.78 KB
(730%)
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len
Binary file not shown.
Binary file modified
BIN
+9.12 KB
(1400%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len
Binary file not shown.
Binary file modified
BIN
+1.39 KB
(750%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/counters.tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
2 | ||
24 | ||
0 |
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len
Binary file not shown.
Binary file modified
BIN
+132 Bytes
(320%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len
Binary file not shown.
Binary file modified
BIN
+1.78 KB
(990%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab
Binary file not shown.
Binary file modified
BIN
+4 KB
(200%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.len
Binary file not shown.
Binary file modified
BIN
+4.53 KB
(1700%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab_i
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/kotlin/com/boribori/boardserver/common/Content.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.boribori.boardserver.common | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class Content ( | ||
|
||
@SerializedName("isbn" ) var isbn : String? = null, | ||
@SerializedName("title" ) var title : String? = null, | ||
@SerializedName("author" ) var author : String? = null, | ||
@SerializedName("description" ) var description : String? = null, | ||
@SerializedName("imagePath" ) var imagePath : String? = null, | ||
@SerializedName("price" ) var price : Int? = null, | ||
@SerializedName("publisher" ) var publisher : String? = null, | ||
@SerializedName("page" ) var page : Int? = null, | ||
@SerializedName("pubDate" ) var pubDate : String? = null, | ||
@SerializedName("adult" ) var adult : Boolean? = null | ||
|
||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.boribori.boardserver.common | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
|
||
data class Status ( | ||
|
||
@SerializedName("msg" ) var msg : String? = null | ||
|
||
) |
19 changes: 19 additions & 0 deletions
19
src/main/kotlin/com/boribori/boardserver/config/SecurityConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.boribori.boardserver.config | ||
|
||
import org.springframework.beans.factory.annotation.Autowired | ||
import org.springframework.security.config.annotation.web.builders.HttpSecurity | ||
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity | ||
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter | ||
|
||
@EnableWebSecurity | ||
class SecurityConfig: WebSecurityConfigurerAdapter() { | ||
|
||
|
||
override fun configure(http: HttpSecurity) { | ||
http.anonymous() | ||
.and() | ||
.formLogin().disable() | ||
.authorizeRequests() | ||
.anyRequest().permitAll() | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/kotlin/com/boribori/boardserver/util/RequestUtil.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.boribori.boardserver.util | ||
|
||
import com.boribori.boardserver.util.dto.ResponseOfGetBook | ||
import org.springframework.http.HttpEntity | ||
import org.springframework.http.HttpHeaders | ||
import org.springframework.http.HttpMethod | ||
import org.springframework.stereotype.Component | ||
import org.springframework.web.client.RestTemplate | ||
|
||
@Component | ||
class RequestUtil ( | ||
private val restTemplateFactory: RestTemplateFactory | ||
){ | ||
|
||
fun getIsbn(isbn : String) : ResponseOfGetBook? { | ||
return restTemplateFactory.exchage(isbn) | ||
} | ||
|
||
} |
40 changes: 40 additions & 0 deletions
40
src/main/kotlin/com/boribori/boardserver/util/RestTemplateFactory.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.boribori.boardserver.util | ||
|
||
import com.boribori.boardserver.util.dto.ResponseOfGetBook | ||
import com.fasterxml.jackson.databind.ObjectMapper | ||
import com.fasterxml.jackson.module.kotlin.KotlinModule | ||
import org.springframework.beans.factory.annotation.Autowired | ||
import org.springframework.http.HttpEntity | ||
import org.springframework.http.HttpHeaders | ||
import org.springframework.http.HttpMethod | ||
import org.springframework.http.MediaType | ||
import org.springframework.stereotype.Component | ||
import org.springframework.web.client.RestTemplate | ||
import org.springframework.web.client.getForObject | ||
import org.springframework.web.util.UriBuilder | ||
import org.springframework.web.util.UriBuilderFactory | ||
import org.springframework.web.util.UriComponentsBuilder | ||
|
||
@Component | ||
class RestTemplateFactory{ | ||
val objectMapper: ObjectMapper = ObjectMapper() | ||
val restTemplate: RestTemplate = RestTemplate() | ||
|
||
fun getHeader(): HttpHeaders { | ||
val headers = HttpHeaders() | ||
headers.contentType = MediaType.APPLICATION_JSON | ||
return headers | ||
} | ||
|
||
fun getHttpEntity(): HttpEntity<Any> { | ||
return HttpEntity(getHeader()) | ||
} | ||
|
||
fun exchage(isbn: String): ResponseOfGetBook? { | ||
var params : HashMap<String, String> = HashMap(); | ||
params.put("isbn", isbn) | ||
val response : String? = restTemplate.getForObject<String>("http://localhost:8081/api/search/book?isbn="+isbn,getHttpEntity(), String :: class) | ||
return objectMapper.readValue(response, ResponseOfGetBook::class.java); | ||
} | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
src/main/kotlin/com/boribori/boardserver/util/dto/ResponseOfGetBook.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.boribori.boardserver.util.dto | ||
|
||
import com.boribori.boardserver.common.Content | ||
import com.boribori.boardserver.common.Status | ||
import com.google.gson.annotations.SerializedName | ||
|
||
data class ResponseOfGetBook ( | ||
@SerializedName("status" ) var status : Status? = Status(), | ||
@SerializedName("content" ) var content : Content? = Content() | ||
|
||
) |