mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 14:58:39 +00:00
8877ba70d3
* fix pr builder goals * update links * add context-object to build * add autogenerated content * fix checkstyle findings
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
@startuml
|
|
package com.iluwatar.client.session {
|
|
class App {
|
|
+ App()
|
|
+ main(args : String[]) {static}
|
|
}
|
|
class Request {
|
|
- data : String
|
|
- session : Session
|
|
+ Request(data : String, session : Session)
|
|
# canEqual(other : Object) : boolean
|
|
+ equals(o : Object) : boolean
|
|
+ getData() : String
|
|
+ getSession() : Session
|
|
+ hashCode() : int
|
|
+ setData(data : String)
|
|
+ setSession(session : Session)
|
|
+ toString() : String
|
|
}
|
|
class Server {
|
|
- LOGGER : Logger {static}
|
|
- host : String
|
|
- port : int
|
|
+ Server(host : String, port : int)
|
|
# canEqual(other : Object) : boolean
|
|
+ equals(o : Object) : boolean
|
|
+ getHost() : String
|
|
+ getPort() : int
|
|
+ getSession(name : String) : Session
|
|
+ hashCode() : int
|
|
+ process(request : Request)
|
|
+ setHost(host : String)
|
|
+ setPort(port : int)
|
|
+ toString() : String
|
|
}
|
|
class Session {
|
|
- clientName : String
|
|
- id : String
|
|
+ Session(id : String, clientName : String)
|
|
# canEqual(other : Object) : boolean
|
|
+ equals(o : Object) : boolean
|
|
+ getClientName() : String
|
|
+ getId() : String
|
|
+ hashCode() : int
|
|
+ setClientName(clientName : String)
|
|
+ setId(id : String)
|
|
+ toString() : String
|
|
}
|
|
}
|
|
Request --> "-session" Session
|
|
@enduml |